Skip to content

Commit

Permalink
Merge pull request dotnet#10 from liboz/manofstick
Browse files Browse the repository at this point in the history
fixed to removing the right null check
  • Loading branch information
liboz authored Oct 15, 2016
2 parents 88ff530 + 3abd2af commit e51ff40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fsharp/FSharp.Core/seq.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ namespace Microsoft.FSharp.Collections

[<CompiledName("Map2")>]
let map2<'T,'U,'V> (f:'T->'U->'V) (source1:seq<'T>) (source2:seq<'U>) : seq<'V> =
checkNonNull "source2" source2
checkNonNull "source1" source1
match source1 with
| :? SeqComposer.Enumerable.EnumerableBase<'T> as s -> s.Compose (SeqComposer.Map2FirstFactory (f, source2))
| _ -> source2 |> seqFactory (SeqComposer.Map2SecondFactory (f, source1))
Expand Down

0 comments on commit e51ff40

Please sign in to comment.