Edit needed in F# Arrays concept?

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
// => 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?


Yes please!

1 Like

@ErikSchierboom perhaps the “check-code-snippets.yml” job needs to skip approaches altogether:

Yep, it should. I’ll do that soon-ish. I have ideas how to do that in a nice way