a
|>Seq.map fixLine
|>Seq.map splitCells
|>Seq.map getName
|>Seq.where(fun a->not<|Seq.isEmpty a)
|>Seq.map fixName
Run Code Online (Sandbox Code Playgroud)
总是觉得很烦人,同时保持很多Seq.在线.建议省略它们的好方法......
例如,当我使用seq和列表时,使用List.map列表,仅map用于seq,或将它们拆分为不同的模块.
a
|>map fixLine
|>map splitCells
|>map getName
|>where(fun a->not<|isEmpty a)
|>map fixName
Run Code Online (Sandbox Code Playgroud)
看起来真的好多了