On 4 avr. 2012, at 17:09, Eric Holk <[email protected]> wrote: > In Rust, you can do something like this instead: > > let parts = vec::map([" a", "b ", " c ", "d"]) {|s| > str::trim(s) > };
Isn't it possible to pass str::trim directly to vec::map? It the indirection through the block really needed? _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
