Skip to content

v1.4.0 - Add new Option.collect() constructor

Compare
Choose a tag to compare
@mplanchard mplanchard released this 09 Mar 20:28
· 8 commits to master since this release

1.4.0 - 2020-03-09

Added

  • New Option.collect constructor to create an Option[Tuple[T, ...]]
    from an iterable of Option[T]. If all Options in the iterator are Some[T],
    they are collected into a tuple in the resulting Some. If any are
    Nothing(), the result is Nothing().