Skip to content

v0.7.5

Compare
Choose a tag to compare
@emmanueltouzery emmanueltouzery released this 17 May 17:08
· 145 commits to master since this release
  • fixes #5: add Option.try_, Option.tryNullable, Either.try_ thanks @davinkevin for the useful feedback & suggestions
  • add Option.mapNullable for a more handy workflow when working with code using null to represent failure
  • add Seq.scanLeft and Seq.scanRight
  • bugfix: LinkedList.of() and Stream.of() (without parameters) would return a list with a single item, undefined. That call was impossible in typescript (wouldn't compile) but it was possible in javascript. Now it returns an empty list as you would expect, while retaining the intended feature, that if there are parameters, the compiler knows we're dealing with a non-empty list (thanks to typescript overloads).