Return to Snippet

Revision: 1675
at November 7, 2006 19:43 by collin


Initial Code
from functional import partial, compose
                    
join = compose("".join, partial(map, str))

Initial URL
http://oakwinter.com/code/functional/documentation/cookbook.html

Initial Description
Tired of the Python's "".join(...) idiom requiring you to pre-stringify all the arguments to join()? Yeah, me too.

Initial Title
An auto-stringifying join

Initial Tags
python

Initial Language
Python