blob: b4cfa52c7f54aba124f159b163e707325a99239f (
plain)
1
2
3
4
5
6
7
|
def bitwise-or [ints: list<int>] -> bool {
($ints | where { 0 == $in mod 2 } | length) >= 2
}
print (bitwise-or [1 2 3 4 5])
print (bitwise-or [2 3 8 16])
print (bitwise-or [1 2 5 7 9])
|