We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1313ef3 commit 34ab1bcCopy full SHA for 34ab1bc
src/FSharpPlus/Extensions/Seq.fs
@@ -49,10 +49,10 @@ module Seq =
49
/// <param name="x3">Third seq.</param>
50
///
51
/// <returns>Seq with values returned from mapping function.</returns>
52
- let lift3 f x1 x2 x3 =
+ let lift3 (f: 'T1 -> 'T2 -> 'T3 -> 'U) (x1: seq<'T1>) (x2: seq<'T2>) (x3: seq<'T3>) : seq<'U> =
53
Seq.allPairs x2 x3
54
|> Seq.allPairs x1
55
- |> Seq.map (fun x -> (fst (snd x), snd (snd x), fst x))
+ |> Seq.map (fun x -> (fst x, fst (snd x), snd (snd x)))
56
|> Seq.map (fun (x, y, z) -> f x y z)
57
58
/// <summary>Applies a function to each element of the collection, starting from the end, threading an accumulator argument
0 commit comments