Skip to content
Open
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
10 changes: 9 additions & 1 deletion src/stdlib/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
title: Array
---

Utilities for working with arrays.
Utilities for working with arrays. Array is a lower level implementation than [List](./list); prefer working with List. You can use [toList](#toList) and [fromList](#fromList) to easily convert an Array to/from a List.

You can create an Array using Array literal syntax:

```grain
let array = [> 1, 2, 3]
```

Note the `>`! If you omit this, Grain will create a List.

<details>
<summary>Added in <code>0.2.0</code></summary>
Expand Down