Skip to content

0.3.8

Pre-release
Pre-release
Compare
Choose a tag to compare
@jost125 jost125 released this 15 Nov 14:16
· 73 commits to master since this release

Features

This release improves usability of Option with some new operations

  • isEmpty to check whether the value is defined or not. It is counterpart for isDefined and aligns well w/ other structures
  • tapNone to allow executing side effect when Option is none. This is handy when some logging is needed in case of empty values
  • toEither direct conversion method with possible left side definition on empty.
  • toArray direct conversion to empty array when Option is empty and single element array when Option is defined
  • toList similar to toArray, direct conversion to empty ArrayList or single element ArrayList