I:1
The + Function: Take
Monadic (One-Argument) Form
There is no monadic form.
Dyadic (Two-Argument) Form: lake A+ B
The take function result is the number of elements specified by argument A, taken
from argument 6. Argument B can be a scalar, vector, or other array. Argument A
must be a scalar or vector of integers. If argument B is a vector, argument A must
be a scalar. If argument B is a multidimensional array, argument A must be a vector
with an element for each coordinate of argument 6. When argument A is positive,
the first elements of argument B are taken; when argument A is negative, the last
elements are taken. If argument A specifies more elements than the number of
elements in argument 6, the result is padded with 0's (or blanks for character data):
1. 2 3 I+ 5 0 0
a a 12 3 4.5
-7 t 1. 2 3 4 5
W"3 4pJ. 2 3 4 5 h 7 13
9 :i. 0 :L :I. 1.2
B
:I. 2 3 4
5678
Y 1 I1 1 1. 12
2 3 t E{
:I. 2 3
5 6 '7
Ete2 2 301. 2 3 4 5 h 7 8 9 10 1:I. 12
R
1. 2 3
I., 5 b
7 t3 9
1. 0 1 1. :I. 2
J
1
l 1 :L t E{
2 1 1fB
'7
I, 2 3
4 5 6
1. 2 3tB
"1 2 3tB
789
10 11. 1.2
86
I:1
The + Function: Drop
Monadic (One-Argument) Form
There is no monadic form.
Dyadic (Two-Argument) Form: Drop A+B
The drop function result is the remaining elements of argument B after the number
of elements specified by argument A is dropped. Argument B can be a vector or
other array. Argument A must be a scalar if argument B is a vector.
When argument B is an array, argument A must have one element for each coordi-
nate of argument B. When argument A is positive, the first elements of argument B
are dropped from the result; when argument A is negative, the last elements are
dropped:
87
Previous Page Next Page