We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f87331 commit fd5675eCopy full SHA for fd5675e
1 file changed
src/FSharp.Control.AsyncSeq/AsyncSeq.fs
@@ -315,7 +315,7 @@ module AsyncSeq =
315
let! v = f state h
316
yield v
317
yield! t |> go f v }
318
- Cons(state, go f state input) |> async.Return
+ asyncSeq { yield state ; yield! go f state input }
319
320
321
/// Iterates over the input sequence and calls the specified function for
0 commit comments