Original Author Paul Laughton, 2011
Page 43
De Re BASIC!
Array.reverse Array[{<start>,<length>}]
Reverses the order of values in a numeric or string array (Array[] or Array$[]) or array segement
(Array[start,length] or Array$[start,length]).
Array.search Array[{<start>,<length>}], <value_exp>, <result_nvar>{,<start_nexp>}
Searches in the numeric or string array (Array[] or Array$[]) or array segment (Array[start,length] or
Array$[start,length]) for the specified numeric or string value, which may be an expression. If the value
is found in the array, its position will be returned in the result numeric variable <result_nvar>. If the
value is not found the result will be zero.
If the optional start expression parameter is present, the search will start at the specified element. The
default value is 1.
Array.shuffle Array[{<start>,<length>}]}
Randomly shuffles the values of the specified array (Array[] or Array$[]) or array segment
(Array[start,length] or Array$[start,length]).
Array.sort Array[{<start>,<length>}]}
Sorts the values of the specified array (Array[] or Array$[]) or array segment (Array[start,length] or
Array$[start,length]) in ascending order.
Array.std_dev <sd_nvar>, Array[{<start>,<length>}]}
Finds the standard deviation of the values in a numeric array (Array[]) or array segment
(Array[start,length]), and places the result into the numeric variable <sd_nvar>.
Array.sum <sum_nvar>, Array[{<start>,<length>}]
Finds the sum of the values in a numeric array (Array[]) or array segment (Array[start,length]), and then
places the result into the numeric variable <sum_nvar>.
Array.variance <v_nvar>, Array[{<start>,<length>}]
Finds the variance of the values in a numeric array (Array[]) or array segment (Array[start,length]), and
places the result into the numeric variable <v_nvar>.
Data Structures and Pointers in BASIC!
BASIC! offers commands that facilitate working with Data Structures in ways that are not possible with
traditional Basic implementations. These commands provide for the implementation of Lists, Bundles,
Stacks and Queues.
What is a Pointer
The central concept behind the implementation of these commands (and many other BASIC!
commands) is the pointer. A pointer is a numeric value that is an index into a list or table of things.