Skip to content

2.14.0

Compare
Choose a tag to compare
@gcanti gcanti released this 20 Apr 17:50
· 85 commits to master since this release

New Feature

  • add flatMap to
    • Either
    • IOEither
    • Reader
    • ReaderEither
    • ReaderIO
    • ReaderTask
    • ReaderTaskEither
    • StateReaderTaskEither
    • TaskEither
    • NonEmptyArray
    • ReadonlyNonEmptyArray
    • Tree
    • Array
    • Identity
    • IO
    • IOOption
    • Option
    • ReadonlyArray
    • State
    • Task
    • TaskOption

the gist is:

  • you can replace chain / chainW with flatMap
  • you can call flatMap in 2 ways: pipe(ma, flatMap(f)) (data-last, aka pipeable) or flatMap(ma, f) (data-first)