Jac*_*cco 3 f#
有没有一种简单的方法将字符串数组转换为F#中的字符串列表?我对F#很新,我在搜索时找不到任何东西.
p.s*_*w.g 11
你可以使用Array.toList:
Array.toList
let myArray = [| "foo"; "bar"; "baz" |] let myList = myArray |> Array.toList
或者就此而言Seq.toList.
Seq.toList
归档时间:
12 年 前
查看次数:
4523 次
最近记录: