【发布时间】:2009-06-14 06:11:49
【问题描述】:
我有一个方法(在这种情况下是静态的),但我不太清楚定义它的确切语法。
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>()
它在startNode 和第一个节点之间的冒号上失败:
“标签类型的语法错误”
制作这样的方法的最佳方法是什么?
【问题讨论】:
标签: syntax f# methods definition