aqua-lib/binary.aqua
InversionSpaces e3c06bf8fc
Revert "Remove binary.aqua (#71)" (#73)
This reverts commit a062fcd444.
2023-12-21 16:03:43 +02:00

26 lines
388 B
Plaintext

-- TODO: add aqua tests
func and(l: bool, r: bool) -> bool:
res: ?bool
if l:
res <<- r
else:
res <<- false
<- res!
func or(l: bool, r: bool) -> bool:
res: ?bool
if l:
res <<- true
else:
res <<- r
<- res!
func not(u: bool) -> bool:
res: ?bool
if u:
res <<- false
else:
res <<- true
<- res!