Skip to content

v1.2.2

Latest

Choose a tag to compare

@alex-lairan alex-lairan released this 17 Jan 13:36

What's Changed

New Features

  • Maybe value_or block support: You can now use value_or { default } with Maybe monads
# Just returns its value
Monads::Just.new(42).value_or { 0 }  # => 42

# Nothing calls the block
Monads::Nothing(Int32).new.value_or { 0 }  # => 0

Full Changelog: v1.2.1...v1.2.2