Anonymous user
Higher-order functions: Difference between revisions
→{{header|Python}}: Restrict comment to functions.
(→{{header|PureBasic}}: Added task) |
(→{{header|Python}}: Restrict comment to functions.) |
||
Line 1,147:
<lang python> result = first(lambda: "second")</lang>
Functions are first class objects in Python. They can be bound to names ("assigned" to "variables"), associated with keys in dictionaries, and passed around like any other object
=={{header|R}}==
|