error FS0597: Successive arguments should be separated by spaces or tupled, and arguments involving function or method applications should be parenthesized
printfn "%c" str1[1]
If you add a dot (.) between the string literal and the array notation it works as intended, i.e. "str1.[1]". Is there's a difference depending on what F# version you're using?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 752405db-4da8-6c06-f58b-22dcc9caa7a7
Version Independent ID: 78362807-847f-b947-2c75-5036f7765b32
Just starting out F# and am trying the examples.
This example fails to compile with the error:
error FS0597: Successive arguments should be separated by spaces or tupled, and arguments involving function or method applications should be parenthesized
If you add a dot (.) between the string literal and the array notation it works as intended, i.e. "str1.[1]". Is there's a difference depending on what F# version you're using?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.