let numbers = [0, 1, 2];
let doubled = numbers.map(|x| x * 2);
You wouldn't want to have to explicitly type out the length of the second array. let numbers = [0, 1, 2];
let doubled = numbers.map(|x| x * 2);
You wouldn't want to have to explicitly type out the length of the second array.> What's a sane/legit use case of such inferring in general?
Depends how you interpret "such inferring"