gretmn102 / gretmn102/FsharpMyExtension

feat(Containers.Result): add `ofOption` and `ofOptionWith` functions

Open Beginner friendly
#22 0 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
F#
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```fsharp
let ofOption error option =
match option with
| Some x -> Ok x
| None -> Error error

let ofOptionWith errorThunk option =
match option with
| Some x -> Ok x
| None -> Error (errorThunk ())
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the Containers.Result module and inspect nearby conversion functions to determine where these additions belong. Implement the two functions shown in the issue, then build the project and confirm the new functions are available with the requested behavior for Some and None options.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.