[Issue 10407] std.conv.to of lazy range to numbers array
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Sep 18 01:55:47 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=10407
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--- Comment #2 from bearophile_hugs at eml.cc ---
(In reply to hsteoh from comment #1)
> Is this a real bug?
No, it's an enhancement request...
> Couldn't you just do `s.map!(a => a.to!real).array` to do what you want?
Yes, but I think converting lazy ranges is a basic and common need, so it
should be supported by "to".
--
More information about the Digitalmars-d-bugs
mailing list