Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 665 Bytes

APL Examples.md

File metadata and controls

49 lines (37 loc) · 665 Bytes
a  ι10
b  (~a  4 6) / a
a = ^10
b = select (not (a in? [4, 6])) a
b = not (a in? [4, 6]) // a
b = a \\ not (a in? [4, 6])
b = a # not (a in? [4, 6])

+ / ints 10
(ints 5) + (rev ints 5))
5 rho 6
+ / ^10

^10 / +

reduce (+) ^10

ints 5 + rev (ints 5)

-> 5 $ 6
[6, 6, 6, 6, 6]
op | Monadic            | Diadic
 ⍴ | Returns dimensions | Creates vector or array
a = [1, 2, 3;
     4, 5, 6]
-> $a
[3, 2]