7 lines
94 B
Text
7 lines
94 B
Text
def is-even [x: int] {
|
|
($x bit-and 1) == 0
|
|
}
|
|
|
|
def is-odd [x: int] {
|
|
($x bit-and 1) == 1
|
|
}
|