4,577
edits
(→External links: BQN) |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
{|class=wikitable | {|class=wikitable | ||
!< | !<syntaxhighlight lang=apl inline>∧</syntaxhighlight>!!<syntaxhighlight lang=apl inline>0</syntaxhighlight>!!<syntaxhighlight lang=apl inline>1</syntaxhighlight> | ||
|- | |- | ||
!< | !<syntaxhighlight lang=apl inline>0</syntaxhighlight> | ||
|< | |<syntaxhighlight lang=apl inline>0</syntaxhighlight>||<syntaxhighlight lang=apl inline>0</syntaxhighlight> | ||
|- | |- | ||
!< | !<syntaxhighlight lang=apl inline>1</syntaxhighlight> | ||
|< | |<syntaxhighlight lang=apl inline>0</syntaxhighlight>||<syntaxhighlight lang=apl inline>1</syntaxhighlight> | ||
|} | |} | ||
Line 15: | Line 15: | ||
The following shows all possible combinations of inputs as a Boolean function. | The following shows all possible combinations of inputs as a Boolean function. | ||
< | <syntaxhighlight lang=apl> | ||
0 0 1 1 ∧ 0 1 0 1 | 0 0 1 1 ∧ 0 1 0 1 | ||
0 0 0 1 | 0 0 0 1 | ||
</ | </syntaxhighlight> | ||
When combined with [[Reduce]], And can be used to test if every value in a Boolean vector is true. | When combined with [[Reduce]], And can be used to test if every value in a Boolean vector is true. | ||
< | <syntaxhighlight lang=apl> | ||
∧/ 1 1 1 1 1 | ∧/ 1 1 1 1 1 | ||
1 | 1 | ||
∧/ 1 0 0 1 1 | ∧/ 1 0 0 1 1 | ||
0 | 0 | ||
</ | </syntaxhighlight> | ||
== See also == | == See also == |