RosettaCodeData/Task/Logical-operations/J/logical-operations-2.j

7 lines
136 B
Plaintext

a=: 0 0 1 1 NB. Work on vectors to show all possible
b=: 0 1 0 1 NB. 2-bit combos at once.
a aon b
0 0 0 1
0 1 1 1
1 1 0 0