Remove parenthesis from Pair

This commit is contained in:
Nikita Mounier 2022-04-12 00:41:14 +00:00
parent d32e77819b
commit 2ba9566c03
No known key found for this signature in database
GPG Key ID: 75B0014B3C53D474

View File

@ -42,7 +42,7 @@ Expr : [ Val I64, Var Str, Add Expr Expr, Mul Expr Expr, Pow Expr Expr, Ln Expr
divmod : I64, I64 -> Result { div : I64, mod : I64 } [ DivByZero ]*
divmod = \l, r ->
when Pair (l // r) (l % r) is
Pair (div) (Ok mod) ->
Pair div (Ok mod) ->
Ok { div, mod }
_ ->