Higher-order functions: Difference between revisions
Python example
No edit summary |
(Python example) |
||
Line 103:
return(reverse(shift));
}
==[[Python]]==
[[Category:Python]]
'''Interpreter:''' Python 2.5
def first(function):
return function()
def second():
return "second"
result = first(second)
|