std.array.array and immutable elements

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Nov 7 07:18:24 PST 2014


On Friday, 7 November 2014 at 14:57:56 UTC, ketmar via
Digitalmars-d-learn wrote:
> `map` cannot return range with immutable elements, 'cause they 
> are
> obviously generated by program, and therefore aren't 
> "immutable".

That's not true. Runtime generated values can be immutable just
fine. And it's std.array.array that's choking here, not map.


More information about the Digitalmars-d-learn mailing list