Learning to use ranges instead of arrays

Ivan Kazmenko via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 20 11:06:55 PDT 2014


Also, there is std.array.array for the ranges you want to convert 
to arrays.
For example, if "a" is an array, "a.map!(x => x * 2).array" 
produces an new array of doubled values (as opposed to a lazy 
range produced by std.algorithm.map).


More information about the Digitalmars-d-learn mailing list