Higher-order functions: Difference between revisions

Content added Content deleted
No edit summary
(Python example)
Line 103: Line 103:
return(reverse(shift));
return(reverse(shift));
}
}

==[[Python]]==
[[Category:Python]]

'''Interpreter:''' Python 2.5

def first(function):
return function()
def second():
return "second"
result = first(second)