implement nullableToMaybe
This commit is contained in:
parent
bc5fc341d5
commit
88effe5af0
1 changed files with 5 additions and 0 deletions
|
|
@ -97,4 +97,9 @@ in rec {
|
|||
else f T;
|
||||
|
||||
firstSome = findFirst isSome None;
|
||||
|
||||
nullableToMaybe = x:
|
||||
if x == null
|
||||
then None
|
||||
else Some x;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue