Skip to content

Commit

Permalink
Fix iteration of collector
Browse files Browse the repository at this point in the history
  • Loading branch information
gusty committed Jan 20, 2024
1 parent 49730b1 commit 8375be0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FSharpPlus/Data/DList.fs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ module DList =
DList<'T>.foldBack List.cons source []
#else
let mutable coll = new ListCollector<_> ()
iter coll.Add source
iter (fun x -> coll.Add x) source
coll.Close ()
#endif

Expand All @@ -281,7 +281,7 @@ module DList =
source :> seq<'T> |> Seq.toArray
#else
let mutable coll = new ArrayCollector<_> ()
iter coll.Add source
iter (fun x -> coll.Add x) source
coll.Close ()
#endif

Expand Down

0 comments on commit 8375be0

Please sign in to comment.