These are chat archives for rust-lang/rust

24th
Jun 2017
Gwen Lofman
@glfmn
Jun 24 2017 18:24
@stevensonmt since .iter() is also a slice method, you can make your function take Vec<T>s and [T]s by changing the signature to fn mean(xs: &[u32]) -> u32 { ... }