Skip to content

Commit cc263ec

Browse files
committed
ListCollector not available in net45
1 parent a6d3eb1 commit cc263ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FSharpPlus/Data/DList.fs

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ module DList =
267267

268268
/// Returns a list of the DList elements.
269269
let toList (source: DList<'T>) =
270-
#if FABLE_COMPILER
270+
#if FABLE_COMPILER || NET45
271271
DList<'T>.foldBack List.cons source []
272272
#else
273273
let mutable coll = new ListCollector<_> ()
@@ -277,7 +277,7 @@ module DList =
277277

278278
/// Returns an array of the DList elements.
279279
let toArray (source: DList<'T>) =
280-
#if FABLE_COMPILER
280+
#if FABLE_COMPILER || NET45
281281
source :> seq<'T> |> Seq.toArray
282282
#else
283283
let mutable coll = new ArrayCollector<_> ()

0 commit comments

Comments
 (0)