On 12/31/13 6:52 AM, Huon Wilson wrote:
fn my_pipeline<I: Iterator<T>>(x: I) -> MapIterator<FilterIterator<I, what_do_I_write_for_the_function_type_here>, and_again> { x.filter(|un| boxed).map(|also| unboxed) }(where the function/closure is the second param to {Map,Filter}Iterator.)
Ah, OK. You're right -- in that case you would need to use a struct and implement `call` manually, unless we had `-> _`.
Patrick _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
