Skip to content

Conversation

@cartermp
Copy link
Contributor

@cartermp cartermp commented Jun 1, 2019

Also gave Glyph a more descriptive name.


let attempt (f: unit -> 'T) = try Some <| f() with _ -> None

let inline ofNull value =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice.

@KevinRansom KevinRansom merged commit 7c39a4f into dotnet:master Jun 2, 2019
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants