[Issue 6256] [patch] std.algorithm.map does not support static arrays and has 'length' for narrow strings.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Dec 5 15:05:52 PST 2014


https://issues.dlang.org/show_bug.cgi?id=6256

hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from hsteoh at quickfur.ath.cx ---
The length issue has already been fixed.

As for static arrays, I think the consensus on github is that static arrays are
not ranges; if you want to use an algorithm on a static array, use [] to slice
it first (akin to using [] on std.container containers to get a range out of
them -- containers are not ranges).

So, I'm closing this bug as fixed.

--


More information about the Digitalmars-d-bugs mailing list