国家着色F#

时间:2016-02-15 19:29:20

标签: f# set fold

我一直在

'Block following this 'let' is unfinished. Expect an expression' 

尝试计算函数时。

这是我的代码:

let colourTheCountries (chart: Chart)  = 
    Set.fold(extColouring chart) Set.empty Set.empty

如何终止表达式?

我想将Set.fold的值作为结果。

1 个答案:

答案 0 :(得分:3)

在网上浏览后,我无法弄清楚为什么我会收到此错误。我注意到之前在这个下面工作的函数也出现了错误。

结果证明上面的函数是由额外的空格缩进的。