Skip to content

Instantly share code, notes, and snippets.

@fcrespo82
Created March 22, 2014 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcrespo82/9699613 to your computer and use it in GitHub Desktop.
Save fcrespo82/9699613 to your computer and use it in GitHub Desktop.
Pure anonymous lambda recursive function in python
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