Changes between Version 3 and Version 4 of Arrays


Ignore:
Timestamp:
09/14/13 14:46:34 (13 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Arrays

    v3 v4  
    6363* `int $length(T a[[]])`
    6464 * returns the number of elements in this array
    65 * `T[[]] $concat(T a[[]], Tb[[]])`
     65* `T[[]] $concat(T a[[]], T b[[]])`
    6666 * returns the concatenation of two arrays
    6767* `T[[]] $add(T a[[]], T x)`
    6868 * returns the result of adding the element `x` to the end of array `a`
    6969* `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)
    7171* `T[[]] $subseq(T a[[]], int start, int end)`
    7272 * returns the subsequence of `a` starting at index `start` and ending at index `end-1`