I have a method (static in this case) and I can’t quite figure out the exact syntax for defining it.
static member FindPath : Queue<Node> startNode : Node endNode : Node nodes : List<Node> =
//this method will call two other to be constructed methods and return a
//queue that is the return value of one of them
return new Queue<Node>()
It fails on the colon between startNode and the first Node with:
“Syntax error in labelled type”
What would be the best way to make a method like this?
1 Answer