option
option copied to clipboard
Ruby implementation of Scala's Option Monad
Results
2
option issues
Sort by
recently updated
recently updated
newest added
This PR adds scala-style matching to options so you can do stuff like this: ``` ruby result = Option(variable).match do |matcher| matcher.case(Some[Fixnum]) { |val| val * 2 } matcher.case(Some[String]) {...
Just for funzies...