Changes between Version 3 and Version 4 of Arrays
- Timestamp:
- 09/14/13 14:46:34 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Arrays
v3 v4 63 63 * `int $length(T a[[]])` 64 64 * returns the number of elements in this array 65 * `T[[]] $concat(T a[[]], T b[[]])`65 * `T[[]] $concat(T a[[]], T b[[]])` 66 66 * returns the concatenation of two arrays 67 67 * `T[[]] $add(T a[[]], T x)` 68 68 * returns the result of adding the element `x` to the end of array `a` 69 69 * `T[[]] $remove(T a[[]], int i)` 70 * returns the result of removing the element at index `i` from the array `a` (with subsequent element shifted down)70 * returns the result of removing the element at index `i` from the array `a` (with subsequent elements shifted down) 71 71 * `T[[]] $subseq(T a[[]], int start, int end)` 72 72 * returns the subsequence of `a` starting at index `start` and ending at index `end-1`
