Reverse
Creates a list by reversing the order of the elements in a list.
REVERSE(list)
Example:
REVERSE({1,2,3}) returns {3,2,1}
Concatenate
Concatenates two lists into a new list.
CONCAT(list1,list2)
Example:
CONCAT({1,2,3},{4}) returns {1,2,3,4}.
Position
Returns the position of an element within a list. The element can be a value, a variable, or an expression. If
there is more than one instance of the element, the position of the rst occurrence is returned. A value of 0 is
returned if there is no occurrence of the specied element.
POS(list, element)
Example:
POS ({3,7,12,19},12) returns 3
Size
Returns the number of elements in a list or a list containing the dimensions of a vector or matrix.
SIZE(list) or SIZE(Vector) or SIZE(Matrix)
Examples:
SIZE({1,2,3}) returns 3
SIZE([[1 2 3], [4 5 6]]) returns {2, 3}
List functions 511
Komentarze do niniejszej Instrukcji