/ Published in: Python
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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import operator map(operator.itemgetter(0), [(1,),(2,)])