Skip to content

Commit 34ab1bc

Browse files
gustywallymathieu
authored andcommitted
Fix Seq.lift3
1 parent 1313ef3 commit 34ab1bc

File tree

1 file changed

+2
-2
lines changed
  • src/FSharpPlus/Extensions

1 file changed

+2
-2
lines changed

src/FSharpPlus/Extensions/Seq.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ module Seq =
4949
/// <param name="x3">Third seq.</param>
5050
///
5151
/// <returns>Seq with values returned from mapping function.</returns>
52-
let lift3 f x1 x2 x3 =
52+
let lift3 (f: 'T1 -> 'T2 -> 'T3 -> 'U) (x1: seq<'T1>) (x2: seq<'T2>) (x3: seq<'T3>) : seq<'U> =
5353
Seq.allPairs x2 x3
5454
|> Seq.allPairs x1
55-
|> Seq.map (fun x -> (fst (snd x), snd (snd x), fst x))
55+
|> Seq.map (fun x -> (fst x, fst (snd x), snd (snd x)))
5656
|> Seq.map (fun (x, y, z) -> f x y z)
5757

5858
/// <summary>Applies a function to each element of the collection, starting from the end, threading an accumulator argument

0 commit comments

Comments
 (0)