【发布时间】:2010-10-25 22:20:52
【问题描述】:
在微软的F# samples中,他们使用“>>”运算符如下:
test |> Seq.iter (any_to_string >> printfn "line %s");
“>>”运算符在这种情况下做了什么?序列的每个项目(在这种情况下是一个数组)是否被隐式传递给any_to_string?这和(fun item -> printfn "line %A" item)类似吗?
【问题讨论】:
-
另见stackoverflow.com/questions/2630940/…(对于
|>操作员)和stackoverflow.com/questions/104618/what-does-mean-in-f(对于->'操作员')