Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public static TRes Match(this FSharpOption opt, Func some, Func none)
{
if (FSharpOption.get_IsSome(opt))
return some.Invoke(opt.Value);
else
return none.Invoke();
}
@bartelink

This comment has been minimized.

Copy link

bartelink commented Jan 30, 2014

Some angle bracket stripping going on - I assume it actually looks like this; https://gist.github.com/bartelink/8720521

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.