Thread overview
[Issue 10407] std.conv.to of lazy range to numbers array
Dec 17, 2022
Iain Buclaw
September 08, 2015
https://issues.dlang.org/show_bug.cgi?id=10407

hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh@quickfur.ath.cx

--- Comment #1 from hsteoh@quickfur.ath.cx ---
Is this a real bug? Couldn't you just do `s.map!(a => a.to!real).array` to do
what you want?

--
September 18, 2015
https://issues.dlang.org/show_bug.cgi?id=10407

bearophile_hugs@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

--- Comment #2 from bearophile_hugs@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".

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=10407

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

--