17 lines
267 B
Plaintext
17 lines
267 B
Plaintext
// Test CameLIGO boolean operators
|
|
|
|
let or_true (b : bool) : bool =
|
|
b || true
|
|
|
|
let or_false (b : bool) : bool =
|
|
b || false
|
|
|
|
let and_true (b : bool) : bool =
|
|
b && true
|
|
|
|
let and_false (b : bool) : bool =
|
|
b && false
|
|
|
|
let not_bool (b: bool) : bool =
|
|
not b
|