demystifyfp / FsToolkit.ErrorHandling

An opinionated F# Library for error handling
https://demystifyfp.gitbook.io/fstoolkit-errorhandling
MIT License
462 stars 59 forks source link

Added traverse and sequence functions for Option #231

Closed 1eyewonder closed 11 months ago

1eyewonder commented 11 months ago

Proposed Changes

Added traverse and sequence functions for both Option and AsyncOption types. I made this due to discussion in the discord channel and thought it may be pretty straight forward.

Functions added:

Types of changes

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

If the behavior matches what is expected, let me know and I can create the documentation as well 😄

Do we think the applicative versions should be added as well? I didn't see an immediate use case but I know pblasucci in the discord was the one with the use case