mapWhile maps an iterable until the first None is encountered.
mapWhile
None
An array
A function that produces an Option.
Option
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
An array of mapped values.
mapWhile
maps an iterable until the firstNone
is encountered.