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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 7 14:35:12 PST 2011


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

           Summary: std.string.join() for chars too
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-02-07 14:32:50 PST ---
This is Python 2.6.6 code (shell):

>>> "x".join("123")
'1x2x3'


This is handy in several situations. So I'd like std.string.join() to join
chars in a similar way:

join("123", "x") ==> "1x2x3"


See also bug 4468

-- 
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