Skip to content

Results module lacks functionality #389

Description

@gdziadkiewicz

Description

Result module lacks the functionality provided by Option module. Missing stuff:

  • Result.getOrElse
  • Result.getOrElseF
  • Result.getOrFail
  • Result.getOrRaise
  • Result.either : ('a->'c )-> ('b->'c) -> Result<'a,'b'> -> 'c

I took the names from Option module, but wouldn't mind coming with something better.

Repro steps

N/A

Expected behavior

N/A

Actual behavior

N/A

Known workarounds

N/A

Related information

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions