Skip to content
Snippets Groups Projects
Select Git revision
  • 784b03d4580ef25c5986ed491f7924b96c04bcf4
  • main default protected
  • phhw
  • captouch-threshold
  • t
  • dos
  • test2
  • test
  • slewtest
  • simtest
  • view-think
  • vm-pending
  • media-buf
  • scope
  • passthrough
  • wave
  • vsync
  • dos-main-patch-50543
  • json-error
  • rahix/big-flow3r
  • pippin/media_framework
  • v1.3.0
  • v1.2.0
  • v1.2.0+rc1
  • v1.1.1
  • v1.1.0
  • v1.1.0+rc1
  • v1.0.0
  • v1.0.0+rc6
  • v1.0.0+rc5
  • v1.0.0+rc4
  • v1.0.0+rc3
  • v1.0.0+rc2
  • v1.0.0+rc1
34 results

mp_sys_display.c

Blame
  • Forked from flow3r / flow3r firmware
    Source project has a limited visibility.
    closure1.py 215 B
    # closures
    
    def f(x):
        y = 2 * x
        def g(z):
            return y + z
        return g
    
    print(f(1)(1))
    
    x = f(2)
    y = f(3)
    print(x(1), x(2), x(3))
    print(y(1), y(2), y(3))
    print(x(1), x(2), x(3))
    print(y(1), y(2), y(3))