| SP1 Exercise 4 | Index << >> |
|
Use cmpx to check a few of the special codes in stencil, {⊢⍵} {,⍵} {⊂⍵}
{+/,⍵}
{∧/,⍵} {∨/,⍵} {=/,⍵} {≠/,⍵}
{ +/,A×⍵} { +/⍪A×⍤2⊢⍵}
{C<+/,A×⍵} {C<+/⍪A×⍤2⊢⍵}
C: a single number of a variable whose value is a single number For example: b←1=?100 128⍴5
cmpx '{ +/,⍵}⌺5 5⊢b' '{⊢+/,⍵}⌺5 5⊢b'
|