Created
February 22, 2013 20:27
-
-
Save ChristopherMacGown/5016315 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 do_this_thing_to_this(stuff, thing=lambda x: x): | |
... return thing(stuff) | |
... | |
>>> do_this_thing_to_this(12345) | |
12345 | |
>>> do_this_thing_to_this(do_this_thing_to_this) | |
<function do_this_thing_to_this at 0x1016611b8> | |
>>> do_this_thing_to_this(do_this_thing_to_this, thing=do_this_thing_to_this) | |
<function do_this_thing_to_this at 0x1016611b8> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment