Skip to content

Instantly share code, notes, and snippets.

@clemux
Forked from nizox/gist:3561289
Created September 1, 2012 00:07
Show Gist options
  • Select an option

  • Save clemux/3561541 to your computer and use it in GitHub Desktop.

Select an option

Save clemux/3561541 to your computer and use it in GitHub Desktop.
import operator
def a(order):
todo = []
for i in order:
todo.append(operator.itemgetter(i))
def b(x):
return [do(x) for do in todo]
return b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment