On 2012-07-10 19:23, Daniel Murphy wrote:
writeln([1, 2, 3].map!"a"()[2]);Sort is in place, and therefore requires more than random access, you need to be able to modify the data you're operating on. Something like [3, 4].map!func().selectionSort() could work lazily without needing to modify the original range, but urrgh.
Ok, I think I get it now. -- /Jacob Carlborg