【发布时间】:2011-02-17 02:41:02
【问题描述】:
这不是一个实际重要的问题,但我希望在 F# 中看到 tacit programming 的示例,其中我的 point-free 函数可以有多个参数(不是列表形式或元组)。
其次,这些函数如何操作复杂的数据结构。我正在 F# Interactive 中尝试,但还没有成功。
我试过了,例如:
> (fun _ -> (fun _ -> (+))) 333 222 111 555
这样对吗?
还有:
> (fun _ -> (fun _ -> (+))) "a" "b" "c" "d";;
val it : string = "cd"
【问题讨论】:
-
你应该使用“point-free”而不是“pointless”。这是标准术语。 :)
标签: f# tacit-programming