From 2260ede247c50b88677e9f80530469d4d7d0c43a Mon Sep 17 00:00:00 2001 From: Ico Doornekamp Date: Mon, 10 Aug 2020 14:01:47 +0200 Subject: Added array type definition to manual (#15173) Co-authored-by: Ico Doornekamp --- doc/manual.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/manual.rst b/doc/manual.rst index c5608da84..4d26421fe 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -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 -- cgit 1.4.1-2-gfad0