/ Published in: Python
Tired of the Python's "".join(...) idiom requiring you to pre-stringify all the arguments to join()? Yeah, me too.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
from functional import partial, compose join = compose("".join, partial(map, str))
URL: http://oakwinter.com/code/functional/documentation/cookbook.html