Is there a way to pattern match in F# so that it will check to see if both elements in a two element tuples are equal. I’m incredibly new to F#, and also new to the whole concept of Pattern Matching in general. I was thinking something along the lines of…
let rec funct = function
|(xs, xs) -> 0
etc. etc. etc.
But I guess that would be too easy hah. Any suggestions? Or is there even a way to do that? Thanks for your help, you guys are incredibly helpful!
http://msdn.microsoft.com/en-us/library/dd233242.aspx
http://msdn.microsoft.com/en-us/library/dd547125.aspx