Why doesn\'t pattern matching on a property of a record compile?
type Cell = { X:int; Y:int } let isNeighbor cell1 cell2 = match cell1.X, c
When you do
match cell1.X, cell2.X with | cell1, cell2
you have created a new cell1 variable, which is cell1.X (an int).
cell1
cell1.X
I would probably have just used an if here, or change to | _,_ when ...
| _,_ when ...