我有一个mySources变量,seq<Async <string []>>.我的目标是将序列展平并将序列中的所有元素连接在一起Async<string []>
mySources
seq<Async <string []>>
Async<string []>
我正在使用Seq.collect方法.
Seq.collect
let myJoinedAsyncs = Seq.collect (fun elems -> elems) mySources
但是这行在mySource上给出了一个错误,表明:
'Async'类型与'seq <'a>'类型不兼容
有任何想法吗?谢谢!
f# asynchronous seq
asynchronous ×1
f# ×1
seq ×1