【发布时间】:2015-05-21 22:04:42
【问题描述】:
试图解决外部库中的问题 - 有没有办法逐项尝试捕获生成器本身(可能不是,但只是为了确定......)?
let myTest() =
let mySeq = seq { for i in -3 .. 3 -> 1 / i }
// how to keep the line above intact, but modify the code below to try-catch-ignore the bad one?
mySeq |> Seq.iter (fun i -> printfn "%d" i)
()
【问题讨论】: