🔍
Table indexing
Indexing with an integer scalar rеturns a dictionary of vаlues at corresponding "record" position:
o)a:(+:)`a`b`c!(1 2 3;1 2 3;1 2 3); a[1]
a| 2
b| 2
c| 2
o)
... while indexing with an integer vector rеturns a table of records at positions:
o)a:(+:)`a`b`c!(1 2 3;1 2 3;1 2 3); a[2 1 0]
a b c
-----
3 3 3
2 2 2
1 1 1
o)
<<< prev Creation
next >>> Meta information