In F#, why can't I access the "Item" member on the Array here:
let last (arr:System.Array) =
let leng = arr.Length
arr.[leng-1] // Error: Field, constructor or member "Item" is not defined.
Can you try this?
let last (arr:_[]) =
let leng = arr.Length
arr.[leng-1]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With