Skip to content

Instantly share code, notes, and snippets.

@Jim-Holmstroem
Created March 28, 2012 07:02
Show Gist options
  • Save Jim-Holmstroem/2224400 to your computer and use it in GitHub Desktop.
Save Jim-Holmstroem/2224400 to your computer and use it in GitHub Desktop.
Map indices tru list in Python
def maplist(a,indices):
return map(lambda i:operator.getitem(a,i),indices)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment