What's Changed
New Features
- Maybe
value_orblock support: You can now usevalue_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 } # => 0Full Changelog: v1.2.1...v1.2.2