Return to Snippet

Revision: 13508
at April 26, 2009 15:01 by fnurl

Initial Code
import operator
map(operator.itemgetter(0), [(1,),(2,)])

Initial URL

Initial Description
I made this ;) Python's operator class is what you need to know if you want to avoid using lambda functions or define your own helper functions in many cases.

Initial Title
flatten list of kind [(1,),(2,),(3,)] in python

Initial Tags

Initial Language