Skip to content

v0.3.0

Compare
Choose a tag to compare
@flash-gordon flash-gordon released this 16 Mar 19:56
· 784 commits to main since this release
4659ef6

Added

  • Added Either#either that accepts two callbacks, runs the first if it is Right and the second otherwise (nkondratyev)
  • Added #fmap2 and #fmap3 for mapping over nested structures like List Either and Either Some (flash-gordon)
  • Added Try#value_or (dsounded)
  • Added the List monad which acts as an immutable Array and plays nice with other monads. A common example is a list of Eithers (flash-gordon)
  • #bind made to work with keyword arguments as extra parameters to the block (flash-gordon)
  • Added List#traverse that "flips" the list with an embedded monad (flash-gordon + damncabbage)
  • Added #tee for all right-biased monads (flash-gordon)

Compare v0.3.0...v0.2.1