/usr/share/slsh/help/arrayfuns.hlp is in slsh 2.2.4-15ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | reverse
SYNOPSIS
Reverse the elements of a 1-d array
USAGE
Array_Type reverse (Array_Type A)
DESCRIPTION
The `reverse' function reverses the elements of a 1-d array and
returns the result.
SEE ALSO
shift
--------------------------------------------------------------
shift
SYNOPSIS
Shift the elements of a 1-d array
USAGE
Array_Type shift (Array_Type A, Int_Type n)
DESCRIPTION
The `shift' function shifts the elements of an array by a specified amount
and returns the result. If `n' is positive, the ith element of the array
will be shifted to the position `i-n' of the array. Elements for
which `i-n' is less than 0 will be moved to the end of the array.
EXAMPLE
A = [1,2,3,4,5,6,7,8,9];
B = shift (A, 3); % ==> B = [4,5,6,7,8,9,1,2,3];
C = shift (A, -1); % ==> C = [9,1,2,3,4,5,6,7,8];
NOTES
It many ways `rotate' would be a better name for this function.
SEE ALSO
reverse, transpose
--------------------------------------------------------------
|