@@ -206,7 +206,7 @@ module SideEffects =
206206 found |> should equal 3
207207 i |> should equal 3 // only partial evaluation!
208208
209- // find next item. We do get a new iterator, but mutable state is now starting at '3'
209+ // find next item. We do get a new iterator, but mutable state is now starting at '3', so first item now returned is '4'.
210210 let! found = ts |> TaskSeq.find ((=) 4 )
211211 found |> should equal 4
212212 i |> should equal 4 // only partial evaluation!
@@ -226,7 +226,7 @@ module SideEffects =
226226 found |> should equal 3
227227 i |> should equal 3 // only partial evaluation!
228228
229- // find next item. We do get a new iterator, but mutable state is now starting at '3'
229+ // find next item. We do get a new iterator, but mutable state is now starting at '3', so first item now returned is '4'.
230230 let! found = ts |> TaskSeq.findAsync ( fun x -> task { return x = 4 })
231231 found |> should equal 4
232232 i |> should equal 4
@@ -360,7 +360,7 @@ module SideEffects =
360360 found |> should equal ( Some 3 )
361361 i |> should equal 3 // only partial evaluation!
362362
363- // find next item. We do get a new iterator, but mutable state is now starting at '3'
363+ // find next item. We do get a new iterator, but mutable state is now starting at '3', so first item now returned is '4'.
364364 let! found = ts |> TaskSeq.tryFind ((=) 4 )
365365 found |> should equal ( Some 4 )
366366 i |> should equal 4 // only partial evaluation!
@@ -380,7 +380,7 @@ module SideEffects =
380380 found |> should equal ( Some 3 )
381381 i |> should equal 3 // only partial evaluation!
382382
383- // find next item. We do get a new iterator, but mutable state is now starting at '3'
383+ // find next item. We do get a new iterator, but mutable state is now starting at '3', so first item now returned is '4'.
384384 let! found = ts |> TaskSeq.tryFindAsync ( fun x -> task { return x = 4 })
385385 found |> should equal ( Some 4 )
386386 i |> should equal 4
0 commit comments