APLX Help : Help on APL language : APL Primitives : ∨ Or
|
|
![]() |
|
Compares two arguments which must consist only of 0's and 1's. If either or both elements compared are 1's, the result for that comparison is 1. Otherwise the result for that comparison is 0. 1 ∨ 1 1 1 ∨ 0 1 0 ∨ 0 0 0 0 0 1 0 ∨ 1 1 1 1 0 (Each element in a vector is compared 1 1 1 1 0 with the corresponding element in a vector of equal size) TABLE ← 3 3⍴ 1 1 1 0 0 0 1 0 1 0 ∨ TABLE (Each element in a matrix is 1 1 1 compared with 0) 0 0 0 1 0 1 ∨\0 0 0 1 0 1 0 (The result is all 1's after the 0 0 0 1 1 1 1 first 1) |
|
APLX Help : Help on APL language : APL Primitives : ∨ Or
|
Copyright © 1996-2010 MicroAPL Ltd