ligo/src/test/contracts/bitwise_arithmetic.religo
2019-12-10 13:47:31 +00:00

6 lines
192 B
Plaintext

/* Test ReasonLigo bitwise operators */
let or_op = (n: nat): nat => Bitwise.lor(n, 4n);
let and_op = (n: nat): nat => Bitwise.land(n, 7n);
let xor_op = (n: nat): nat => Bitwise.lxor(n, 7n);