REXXLib Array Manipulation Functions
These are a few of the available array manipulation functions:
- ARRAYCOPY(fromstem, tostem, [from], [to], [count])
- copies "count" elements in the integrally-indexed array "fromstem" to the integrally-indexed array "tostem"
- copying begins in "fromstem" at the element "from" and elements are copied to "tostem" starting at ":to"
- this function overlays values in "tostem" with values from "fromstem"
- this function can be used to initialize an array to a single value
- CVCOPY(fromstem, tostem)
- copies all the values in ".fromstem". to ".tostem".
- ".fromstem". and ".tostem". can be arbitrarily-indexed arrays
- ARRAYSORT(stem, [first], [n], [[start], [length], [order], [type],...])
- sorts the integrally-indexed REXX compound variable "stem" starting with the "first" element for ".n" elements based on one or more fields in the array of values
- a field in an element is "length" characters wide beginning at the "start" position
- "order" defines the type of sort (ascending or descending)
- "type" defines how the content of a field is interpreted (case-sensitive, case-insensitive, or numeric)
Next