Skip to content

Commit

Permalink
Fixed for new namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
manofstick committed Apr 12, 2017
1 parent a9dda98 commit 882ee69
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/fsharp/FSharp.Core/seq.fs
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ namespace Microsoft.FSharp.Collections
open Microsoft.FSharp.Control
open Microsoft.FSharp.Collections
open Microsoft.FSharp.Primitives.Basics
open Microsoft.FSharp.Collections.SeqComposition

[<RequireQualifiedAccess>]
[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
Expand All @@ -459,11 +460,11 @@ namespace Microsoft.FSharp.Collections
open Microsoft.FSharp.Collections.IEnumerator

// these helpers are just to consolidate the null checking
let inline toISeq (source:seq<'T>) : ISeq.Core.ISeq<'T> = checkNonNull "source" source; ISeq.ofSeq source
let inline toISeq1 (source1:seq<'T>) : ISeq.Core.ISeq<'T> = checkNonNull "source1" source1; ISeq.ofSeq source1
let inline toISeq2 (source2:seq<'T>) : ISeq.Core.ISeq<'T> = checkNonNull "source2" source2; ISeq.ofSeq source2
let inline toISeq3 (source3:seq<'T>) : ISeq.Core.ISeq<'T> = checkNonNull "source3" source3; ISeq.ofSeq source3
let inline toISeqs (sources:seq<'T>) : ISeq.Core.ISeq<'T> = checkNonNull "sources" sources; ISeq.ofSeq sources
let inline toISeq (source:seq<'T>) : ISeq<'T> = checkNonNull "source" source; ISeq.ofSeq source
let inline toISeq1 (source1:seq<'T>) : ISeq<'T> = checkNonNull "source1" source1; ISeq.ofSeq source1
let inline toISeq2 (source2:seq<'T>) : ISeq<'T> = checkNonNull "source2" source2; ISeq.ofSeq source2
let inline toISeq3 (source3:seq<'T>) : ISeq<'T> = checkNonNull "source3" source3; ISeq.ofSeq source3
let inline toISeqs (sources:seq<'T>) : ISeq<'T> = checkNonNull "sources" sources; ISeq.ofSeq sources

let mkDelayedSeq (f: unit -> IEnumerable<'T>) = mkSeq (fun () -> f().GetEnumerator())
let mkUnfoldSeq f x = mkSeq (fun () -> IEnumerator.unfold f x)
Expand Down

0 comments on commit 882ee69

Please sign in to comment.