Class itemgetter

A picklable itemgetter.

Declaration

class itemgetter
source link

Documentation

Examples

>>> data = [0, 1, 2]
>>> get_1 = itemgetter(1)
>>> get_1(data)
1

Methods