Add infix operators

This commit is contained in:
jeltz 2022-09-06 17:19:22 +02:00
parent 3504737de8
commit 482bc9ecb6
Signed by: jeltz
GPG key ID: 800882B66C0C3326

View file

@ -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