On 10/06/2016 10:32 AM, Nordlöw wrote:Is there a concept in D similar to Rust's `collect`:https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collectThat's "make" in std.container. Is that what you're looking for? As an aside, "collect" is an awful abbreviation of "collection". -- Andrei
I've always thought of it more as "collect the elements of the iterator into a container".