Use closure syntax in parentheses in False.roc

This commit is contained in:
Joshua Warner 2022-11-09 18:48:06 -05:00
parent 1753c9cf5b
commit cdbdfeeaa4
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
2 changed files with 22 additions and 12 deletions

View file

@ -437,22 +437,22 @@ stepExecCtx = \ctx, char ->
# `=` equals
Task.fromResult
(
a, b <- binaryOp ctx
if a == b then
-1
else
0
binaryOp ctx \a, b ->
if a == b then
-1
else
0
)
0x3E ->
# `>` greater than
Task.fromResult
(
a, b <- binaryOp ctx
if a > b then
-1
else
0
binaryOp ctx \a, b ->
if a > b then
-1
else
0
)
0x5F ->