Steven D'Aprano <steve+pyt...@pearwood.info> writes:
> Is there any other functionality which would make this more useful?

Cute, but map or listcomps work ok.  Here's the Haskell equivalent to
your example, fwiw, using the <$> operator from the Control.Applicative
module:

(+2) <$> [1,2,3]   =>   [3,4,5]

If you haven't tried Haskell yet, you might enjoy it.
http://learnyouahaskell.com is a good place to start.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to