You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iter.sum(), iter.product() – the former is usually equal to .fold(0, |acc, &i| acc + i), whereas the latter is equal to .fold(1, |prod, &i| prod * i). Need to check types, though.