[英]Removing Empty or Whitespace strings from an IList<String> in F#
如何從 FSharp 的 IList 中過濾掉 Empty 和 WhiteSpace 字符串? 不知道是不是一定要先轉成List。
IList<string>
實現了IEnumerable<string>
,所以你可以使用
mylist |> Seq.filter (...)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.