Closed yyy33 closed 4 months ago
I would prefer not to build this into this crate. I think the original snippet using types.clone()
is all right as is.
You can also write let types: Vec<_> = (1..=n).map(...).collect();
and use #types
twice.
let types: Vec<_> = (1..=n).map(...).collect();
It worked. Thank you