Skip to content

Commit 9431c75

Browse files
committed
Don't pretend it's infinite, it's just defaultable
1 parent d721e0e commit 9431c75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FSharpPlus/Extensions/Dict.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ module Auto =
1010
{
1111
new ICollection<'TValue> with
1212
member _.Contains item = source.Values.Contains item || obj.ReferenceEquals (item, konst)
13-
member _.GetEnumerator () = (seq { yield! source.Values; yield! (Seq.initInfinite (fun _ -> konst))}).GetEnumerator () :> System.Collections.IEnumerator
14-
member _.GetEnumerator () = (seq { yield! source.Values; yield! (Seq.initInfinite (fun _ -> konst))}).GetEnumerator () : IEnumerator<'TValue>
13+
member _.GetEnumerator () = source.Values.GetEnumerator () :> System.Collections.IEnumerator
14+
member _.GetEnumerator () = source.Values.GetEnumerator () : IEnumerator<'TValue>
1515
member _.IsReadOnly = true
1616
member _.Add (_item: 'TValue) : unit = raise (NotImplementedException ())
1717
member _.Clear () : unit = raise (NotImplementedException ())

0 commit comments

Comments
 (0)