gretmn102 / gretmn102/FsharpMyExtension
feat(Containers.Result): add `defaultWith` function
Open
Beginner friendly
good first issue
- Dominant language
- F#
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```fsharp
let defaultWith defThunk (result: Result<'T, 'Error>) =
match result with
| Ok x -> x
| Error msg -> defThunk msg
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the Containers.Result module and read nearby Result helper functions to determine the project’s conventions for naming and tests. Add the requested defaultWith function with the behavior shown in the issue, then run the relevant test suite or existing Result tests to confirm Ok and Error cases.
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
- 68/100