Origin Definitions Sections StandardLIB Doc
IF YOU CAN SEE THIS go to /sfa/Nuprl/Shared/Xindentation_hack_doc.html
array_1
Nuprl Section: array_1

Selected Objects
COMARRAY_DEFS [T]Array : type of all arrays of type T.[T]Array{i..j-} : Those arrays with start index i and end index j-1. e.g. a[i], a[i+1], ..., a[j-1]NIL
defarray [T]Array  == n:m:{n...}{n..m}T
defarray_lb a.l == 1of(a)
defarray_ub a.u == 1of(2of(a))
defp_array [T]Array{i..j} == {a:[T]Array | a.l = i & a.u = j }
THMp_array_properties i:j:{i...}, a:[T]Array{i..j}. a.l = i & a.u = j
defarray_el a[i] == 2of(2of(a))(i)
defarray_seg a[i..j] == <i,j,2of(2of(a))>
defarray_shift a[++i] == <(a.l+i),(a.u+i),(j.a[(j-i)])>
defarray_append arr1 @ arr2 == <arr1.l,arr2.u,(i.if i<arr1.u arr1[i] ; arr2[i] fi)>
IF YOU CAN SEE THIS go to /sfa/Nuprl/Shared/Xindentation_hack_doc.html

Origin Definitions Sections StandardLIB Doc