www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9082] New: join should accept types which are not ranges as the separator

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9082

           Summary: join should accept types which are not ranges as the
                    separator
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com



04:05:05 PST ---
int[] arr = [1, 2, 3].join(0);  // fail

Expected:
[1, 0, 2, 0, 3]

This should work with any separator type if it's the element type of the range.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 27 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9082


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|join should accept types    |Add "interleave" function
                   |which are not ranges as the |
                   |separator                   |



15:36:29 PST ---
Changed summary. 'join' doesn't work in the way I thought it was, what I'm
looking for is something different, an "interleave" type of function.

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