Bug 3519 – unpack, enumerate in std.range

Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-11-16T16:49:00Z
Last change time
2015-06-09T01:27:05Z
Keywords
patch
Assigned to
andrei
Creator
dsimcha

Attachments

IDFilenameSummaryContent-TypeSize
500unpackEnumerate.dUnpack and Enumerate for std.rangetext/plain9128

Comments

Comment #0 by dsimcha — 2009-11-16T16:49:40Z
Created attachment 500 Unpack and Enumerate for std.range Here are implementations of unpack() and enumerate() that I believe are good candidates for std.range. These solve a few annoying issues with ranges. For unpack() to work, the /*ref*/ in std.range.Zip.Proxy.at() needs to be uncommented.
Comment #1 by dsimcha — 2010-08-15T21:05:30Z
I'm resolving this one because Lockstep accomplishes pretty much what Unpack would only with less bugs and more efficiency, and bug 3444 contains a patch that's a better solution to what Enumerate was meant to solve.