These are chat archives for rust-lang/rust

28th
Jun 2015
Peter Atashian
@retep998
Jun 28 2015 04:11
@madkinder It depends on how b is used. If something latter assumes b contains a specific integer type then it'll use that integer type, otherwise you'll have a bunch of i32 stuff.
Pierre Krieger
@tomaka
Jun 28 2015 06:35
@madkinder .iter() produces a list of &i32 (or &InferredIntegerType), then .filter() calls its closure with references to the elements produces by the iterator, which means that here you get a &&i32 (or &&InferredIntegerType)
And you can explicitely write .filter(|&x: &&i32| *x < 1) if you wish so
Ihor Kaharlichenko
@kaharlichenko
Jun 28 2015 17:43
thanks, that was exactly the answer I was looking for