Usage
set!(a, n, x)
a.n := x;
Signature
set!: (%, MachineInteger, T) T
Parameter | Type | Description |
---|---|---|
a | % | a linear structure |
n | MachineInteger | an index |
x | T | an entry |
Description
Sets the element ofwith index
to
and returns
. The position of that element depends on the indexing scheme of each actual type, for example if it is
-indexed, then
sets the
element of
, while if it is
-indexed, then
sets the
element of
.
Remarks
Bound checking depends on the actual type, some perform it and some do not.