This release cleans up the tupperware
API a bit by removing unnecessary functions and adding some that might be expected.
Change Log
Optional
- removed
unwrapOrElse
(This function is no longer necessary.unwrapOr
accepts either a default value or a function that returns the default). - removed
forceUnwrap
(This function is no longer necessary.unwrap
andforceUnwrap
are functionally identical now that we no longer keep track ofhasBeenInspected
internally). - removed
orElse
(This function is no longer necessary.or
now accepts either a fallbackOptional
or a function that returns a fallbackOptional
).
Result
- removed
unwrapOrElse
(This function is no longer necessary.unwrapOr
accepts either a default value or a function that returns the default). - removed
orElse
(This function is no longer necessary.or
now accepts either a fallbackResult
or a function that returns a fallbackResult
). - added
and
(Behaves similarly toOptional
'sand
method)