> let tuple = (06, "Tuple Data Type");;
val tuple : int * string
> let (num, str) = tuple;;
val num : int
val str : string
can anyone tell me why i am getting this error.
Thanks in advance.
> let tuple = (06, "Tuple Data Type");;
val tuple : int * string
> let (num, str) = tuple;;
val num : int
val str : string
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jul 5, 2011, 4:52 AM
If you're writing an F# file using an editor, then you shouldn't begin lines with this character. Nor should you use a double semi-colon at the end of the line.
The following code should build and run OK from the command line: