You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is a good start to a more useful intro to Array. I don't know enough about why I would use Array vs List to add that info myself, but I think it should be here and on the List page.
Copy file name to clipboardExpand all lines: src/stdlib/array.md
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,15 @@
2
2
title: Array
3
3
---
4
4
5
-
Utilities for working with arrays.
5
+
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.
6
+
7
+
You can create an Array using Array literal syntax:
8
+
9
+
```grain
10
+
let array = [> 1, 2, 3]
11
+
```
12
+
13
+
Note the `>`! If you omit this, Grain will create a List.
0 commit comments