小编And*_*res的帖子

我可以拦截F#序列生成器吗?

试图解决外部库中的问题 - 有没有办法尝试 - 逐项捕获生成器本身(可能不是,但只是为了确保......)?

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)
    ()
Run Code Online (Sandbox Code Playgroud)

f# sequence

6
推荐指数
1
解决办法
106
查看次数

标签 统计

f# ×1

sequence ×1