[Issue 5542] std.string.join() for chars too

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 30 04:26:07 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=5542



--- Comment #1 from bearophile_hugs at eml.cc 2013-09-30 04:26:06 PDT ---
In Python and Haskell:

>>> s = "language"
>>> "|".join(s)
'l|a|n|g|u|a|g|e'


Prelude> intersperse '|' s
Prelude Data.List> intersperse '|' s
"l|a|n|g|u|a|g|e"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list