## Š Nand

Compares two arguments which must consist only of 0's and 1's. If either or both elements compared are 0's, the result for that comparison is 1. Otherwise the result for that comparison is 0.

                 1 Š 1
           0
                 1 Š 0
           1
                 0 Š 0
           1
                 0 0 0 1 1 Š 1 1 1 1 0   (Each element in a vector is compared
           1 1 1 0 1                      with the corresponding element in a
                                           vector of equal size)

                 TABLE „ 3 3 ½ 1 1 1 0 0 0 1 0 1
                 1 Š TABLE               (Each element in a matrix is
           0 0 0                          compared with 1)
           1 1 1
           0 1 0

Topic: APLX Help : Help on APL language : APL Primitives : Š Nand

[ Previous | Next | Contents | Index ]