[Python-ideas] Adding list.pluck()

Cenk Altı cenkalti at gmail.com
Fri Jun 1 23:10:03 CEST 2012


Hello All,

pluck() is a beautiful function which is in underscore.js library.
Described as "A convenient version of what is perhaps the most common
use-case for map: extracting a list of property values."

http://documentcloud.github.com/underscore/#pluck

What about it implementing for python lists? And maybe for other iterables?



More information about the Python-ideas mailing list