The Arrays concept, while talking about accessing elements, this example is shown:
let numbers = [| 2; 3; 5 |]
// Update value in array
numbers.[2] <- 9
// Read value from array
numbers.[2]
// => 9
The F# language guide says:
You can access array elements by using brackets (
[
and]
). The original dot syntax (.[index]
) is still supported but no longer recommended as of F# 6.0.
Shall I create a PR?