reduceWhile reduces an iterable until the first None is encountered.
reduceWhile
None
An array
A function that produces an Option.
Option
The initial value.
Optional
If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.
undefined
The reduced value.
reduceWhile
reduces an iterable until the firstNone
is encountered.