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
// ^ While not a bad answer, keep in mind that an error will be thrown if both arr1 and arr2 are empty because you're doing reduce on an empty sequence without an initial value. To avoid this, simply provide a seed (such as 0) as the second argument to reduce.