Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a function to concat Options #282

Open
baronfel opened this issue Oct 14, 2016 · 0 comments
Open

Add a function to concat Options #282

baronfel opened this issue Oct 14, 2016 · 0 comments

Comments

@baronfel
Copy link
Owner

Add a function to concat Options [6098514]

Submitted by Huw Simpson on 6/25/2014 12:00:00 AM
1 votes on UserVoice prior to migration

I suggest the following enhancement to the Option module:
// Combines the given option-of-option into a single option.
let concat value =
match value with
| None -> None
| Some o -> o
concat : value : 'a option option -> 'a option

Response

** by fslang-admin on 9/16/2014 12:00:00 AM **

Declining as “Option.bind id” is a suitable workaround, or it is very easy to define this function in user code.
Don Syme Current BDFL F# Language/Library Evolution

Original UserVoice Submission
Archived Uservoice Comments

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

No branches or pull requests

1 participant