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

Commit

Permalink
info about arrays of structs
Browse files Browse the repository at this point in the history
  • Loading branch information
critesjosh committed May 4, 2023
1 parent 3557cfd commit 27d51b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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

0 comments on commit 27d51b7

Please sign in to comment.