[Issue 15198] New: evenChunks - std.range.chunks variant which slices range into N evenly-sized chunks
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Mon Oct 12 18:41:15 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15198
          Issue ID: 15198
           Summary: evenChunks - std.range.chunks variant which slices
                    range into N evenly-sized chunks
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: thecybershadow at gmail.com
Split a source range into N chunks of approximately equal length. The source
range will be a forward range with known length.
Unlike chunks, evenChunks will take a chunk count (not size), and each returned
chunk will have either `source.length / N` or `source.length / N + 1` elements.
--
    
    
More information about the Digitalmars-d-bugs
mailing list