> 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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jul 5, 2011, 12:52 AM EDT
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: