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
Copy file name to clipboardExpand all lines: pages/docs/manual/latest/migrate-to-v11.mdx
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,12 @@ Open it so it's available in the global scope.
62
62
}
63
63
```
64
64
65
+
One major change to be aware of is that array access now returns an `option`.
66
+
```res
67
+
let firstItem = myArray[0] // Some("hello")
68
+
```
69
+
If you would like to not use an `option`, you can use [`Array.getUnsafe`](api/core/array#value-getUnsafe).
70
+
65
71
For a detailed explanation on migration to ReScript Core, please refer to its [migration guide](https://github.com/rescript-association/rescript-core#migration). A semi-automated script is available as well.
0 commit comments