Add infix operators
This commit is contained in:
parent
3504737de8
commit
482bc9ecb6
1 changed files with 3 additions and 0 deletions
3
utils.ml
3
utils.ml
|
@ -2,3 +2,6 @@ let rec deoptionalise = function
|
||||||
| Some x :: xs -> x :: deoptionalise xs
|
| Some x :: xs -> x :: deoptionalise xs
|
||||||
| None :: xs -> deoptionalise xs
|
| None :: xs -> deoptionalise xs
|
||||||
| [] -> []
|
| [] -> []
|
||||||
|
|
||||||
|
let ( &?> ) left right = match left with Error _ -> right | ok -> ok
|
||||||
|
let ( &> ) left right = match left with Error _ -> right | Ok ok -> ok
|
||||||
|
|
Loading…
Reference in a new issue