I am trying to work on an iterative sum, where the sum could be greater than the individual datatype limit. This is running into an overflow situation (which it should). Any idea on how to navigate the problem?
let vec : Vec<u8> = vec![100, 2, 3, 100, 100];
let sum : u32 = vec.iter().sum();