RosettaCodeData/Task/Logical-operations/J/logical-operations-2.j
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

6 lines
136 B
Text

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