我在这里查看收集功能列表:https ://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-collection-types
但我似乎找不到我要找的东西。
我有一个元素列表:
[ 3; 4; 5; 6; 7; 8 ]
我正在寻找这样的东西:
[ 3; 4; 5; 6; 7; 8 ]
|> List.iterPair (fun x y -> ())
它会经过我的地方:
3 4
4 5
5 6
6 7
7 8
有没有办法用内置函数做到这一点?