-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This method is useful if you want to create an Option based on the value of a Boolean, i.e. something like this: if foo { Option.Some(thing) } else { Option.None } Using Bool.then, we can reduce this to the following: foo.then fn { thing } Changelog: added
- Loading branch information
1 parent
a620408
commit 4fe8a03
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters