How to apply a function to a collection of elements
Posted
by Cue
on Stack Overflow
See other posts from Stack Overflow
or by Cue
Published on 2010-03-16T22:29:16Z
Indexed on
2010/03/16
22:31 UTC
Read the original article
Hit count: 175
python
Consider I have an array of elements out of which I want to create a new 'iterable' which on every next applies a custom 'transformation'. What's the proper way of doing it under python 2.x?
For people familiar with Java, the equivalent is Iterables#transform from google's collections framework.
© Stack Overflow or respective owner