-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw an error when coalesce is passed only nothing/missing arguments
Remove the one-argument method, which does not allow passing a replacement value which can never be nothing/missing. The old behavior can still be obtained by passing Some(nothing)/Some(missing) as last argument. Also add a tests for recursivevely wrapped values like Some(Some(1)).
- Loading branch information
Showing
2 changed files
with
50 additions
and
19 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