Skip to content

Tupperware v2.0.0

Latest
Compare
Choose a tag to compare
@iwburns iwburns released this 08 Feb 05:00
· 1 commit to master since this release
9de2518

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 and forceUnwrap are functionally identical now that we no longer keep track of hasBeenInspected internally).
  • removed orElse (This function is no longer necessary. or now accepts either a fallback Optional or a function that returns a fallback Optional).

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 fallback Result or a function that returns a fallback Result).
  • added and (Behaves similarly to Optional's and method)