Skip to content

Commit fd5675e

Browse files
committed
AsyncSeq.scanAsync idiomatic
1 parent 1f87331 commit fd5675e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/FSharp.Control.AsyncSeq/AsyncSeq.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ module AsyncSeq =
315315
let! v = f state h
316316
yield v
317317
yield! t |> go f v }
318-
Cons(state, go f state input) |> async.Return
318+
asyncSeq { yield state ; yield! go f state input }
319319

320320

321321
/// Iterates over the input sequence and calls the specified function for

0 commit comments

Comments
 (0)