Release v4.10.0
- fix
Option::fold
andEither::fold
signatures. - add
Option::toArrayList
cast method.
>>> Option::some(1)
->toArrayList(ArrayList::singleton(...))
->toArray();
=> [1]
>>> Option::some([1])
->toArrayList(ArrayList::collect(...))
->toArray();
=> [1]
>>> Option::none()
->toArrayList(ArrayList::collect(...))
->toArray();
=> []