Skip to content
Snippets Groups Projects
Select Git revision
  • 14d5abcc2e4345154e8ffe73936b9fd0c9816fd0
  • master default protected
  • esp32-nimble-wiki
  • rahix/hw-lock-new-mutex
  • dx/somewhat-more-dynamic-config
  • schneider/sdk-0.2.1-7
  • schneider/bsec
  • dx/meh-bdf-to-stm
  • dx/flatten-config-module
  • genofire/ble-follow-py
  • schneider/ble-stability
  • schneider/ble-stability-new-phy
  • add_menu_vibration
  • plaetzchen/ios-workaround
  • blinkisync-as-preload
  • schneider/max30001-pycardium
  • schneider/max30001-epicaridum
  • schneider/max30001
  • schneider/stream-locks
  • schneider/fundamental-test
  • schneider/ble-buffers
  • v1.12
  • v1.11
  • v1.10
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
37 results

textbuffer.h

Blame
  • Forked from card10 / 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))