Skip to content

Release v4.10.0

Compare
Choose a tag to compare
@whsv26 whsv26 released this 18 Dec 18:37
· 357 commits to master since this release
  • fix Option::fold and Either::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();
=> []