Closed fwbrasil closed 3 days ago
This PR introduces a few improvements. The main one is allocation-free pattern matching for both Maybe and Result. The new implicit class Maybe.Ops wraps a Maybe into an AnyVal, which satisfies the compiler to consider the method an extractor.
Maybe
Result
Maybe.Ops
AnyVal
This PR introduces a few improvements. The main one is allocation-free pattern matching for both
Maybe
andResult
. The new implicit classMaybe.Ops
wraps aMaybe
into anAnyVal
, which satisfies the compiler to consider the method an extractor.