Created
March 4, 2016 07:17
-
-
Save davidnuon/011f8ec31b36964eb3b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def handleClickB(data_in): | |
MWGETSelect(selectionData()) | |
def action(fn, get_data): | |
def func_out(data_in): | |
print data_in | |
fn(get_data()) | |
return func_out | |
def adder(n): | |
def func_out(x): | |
return x + n | |
return func_out | |
plus_one = adder(1) | |
print plus_one(2) | |
print adder(1)(2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment