How to apply a function to a collection of elements
<p>Consider I have an array of elements out of which I want to create a new 'iterable' which on every <em>next</em> applies a custom 'transformation'. What's the proper way of doing it under python 2.x?</p>

<p>For people familiar with Java, the equivalent is Iterables#transform from google's collections framework.</p>

<p>Ok as for a dummy example (coming from Java)</p>

<pre><code>Iterable&lt;Foo&gt; foos = Iterables.transform(strings, new Function&lt;String, Foo&gt;()
    {
        public Foo apply(String string) {
        return new Foo(string);
        }
    });


//use foos below
</code></pre>
