Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

info about arrays of structs #130

Merged
merged 1 commit into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/language_concepts/00_data_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ fn main() {
All elements in an array must be of the same type (i.e. homogeneous). That is, an array cannot group
a `Field` value and a `u8` value together for example.

#### Types

You can create arrays of primitive types or structs. There is not yet support for nested arrays
(arrays of arrays) or arrays of structs that contain arrays.

### Tuples

A tuple collects multiple values like an array, but with the added ability to collect values of
Expand Down
5 changes: 5 additions & 0 deletions versioned_docs/version-0.4.1/language_concepts/data_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ fn main() {
All elements in an array must be of the same type (i.e. homogeneous). That is, an array cannot group
a `Field` value and a `u8` value together for example.

#### Types

You can create arrays of primitive types or structs. There is not yet support for nested arrays
(arrays of arrays) or arrays of structs that contain arrays.

### Tuples

A tuple collects multiple values like an array, but with the added ability to collect values of
Expand Down