小编sal*_*lek的帖子

F#连接字符串选项列表

如何连接字符串选项列表?

let m = [ ""; "12"; "a"; "b"] 
// I can join these with 
m |> List.toSeq |> String.concat "\n" 

// now I got a list of string option list 
let l = [Some ""; None; Some "a"; Some "b"] 
l |> List.toSeq |> ????
Run Code Online (Sandbox Code Playgroud)

f#

2
推荐指数
1
解决办法
486
查看次数

标签 统计

f# ×1