Added some information on sequences.
This commit is contained in:
parent
f8272eba94
commit
3f502123ea
1 changed files with 6 additions and 5 deletions
|
|
@ -893,11 +893,12 @@ integers from 0 to ``len(A)-1``. An array expression may be constructed by the
|
||||||
array constructor ``[]``.
|
array constructor ``[]``.
|
||||||
|
|
||||||
`Sequences`:idx: are similar to arrays but of dynamic length which may change
|
`Sequences`:idx: are similar to arrays but of dynamic length which may change
|
||||||
during runtime (like strings). A sequence ``S`` is always indexed by integers
|
during runtime (like strings). Sequences are implemented as growable arrays,
|
||||||
from 0 to ``len(S)-1`` and its bounds are checked. Sequences can be
|
allocating pieces of memory as items are added. A sequence ``S`` is always
|
||||||
constructed by the array constructor ``[]`` in conjunction with the array to
|
indexed by integers from 0 to ``len(S)-1`` and its bounds are checked.
|
||||||
sequence operator ``@``. Another way to allocate space for a sequence is to
|
Sequences can be constructed by the array constructor ``[]`` in conjunction
|
||||||
call the built-in ``newSeq`` procedure.
|
with the array to sequence operator ``@``. Another way to allocate space for a
|
||||||
|
sequence is to call the built-in ``newSeq`` procedure.
|
||||||
|
|
||||||
A sequence may be passed to a parameter that is of type *open array*.
|
A sequence may be passed to a parameter that is of type *open array*.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue