Added array type definition to manual (#15173)

Co-authored-by: Ico Doornekamp <git@zevv.nl>
This commit is contained in:
Ico Doornekamp 2020-08-10 14:01:47 +02:00 • committed by GitHub
commit 2260ede247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1301,6 +1301,9 @@ array constructor ``[]``. The element type of this array expression is
inferred from the type of the first element. All other elements need to be
implicitly convertible to this type.
An array type can be defined using the `array[size, T]` syntax, or using
`array[lo..hi, T]` for arrays that start at an index other than zero.
Sequences are similar to arrays but of dynamic length which may change
during runtime (like strings). Sequences are implemented as growable arrays,
allocating pieces of memory as items are added. A sequence ``S`` is always