Created
March 22, 2014 01:09
-
-
Save fcrespo82/9699613 to your computer and use it in GitHub Desktop.
Pure anonymous lambda recursive function in python
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
import urllib | |
a=['<','<','<','<'] | |
[ (lambda a:lambda t,v:a(t,a,v))(lambda t,s,x:t if x==0 else s(urllib.quote(t),s,x-1))(x,idx+1) for idx,x in enumerate(a) ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment