member

Syntax

member(X, Y) or X.Y

Arguments

X is a table/dictionary.

Y is a member/attribute of X.

Details

Return the specified member/attribute of an object.

Examples

$ x=1 2 3
$ y=4 5 6
$ t=table(x,y);

$ t.x;
[1,2,3]
$ t.y;
[4,5,6]

$ t.rows();
3
$ t.cols();
2
$ t.size();
3
// a table's size is defined as the number of its rows

$ d = dict(1 2 3, 4 5 6);
$ d;
3->6
1->4
2->5

$ d.2;
5