We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3b0227 commit e2926a6Copy full SHA for e2926a6
src/FSharpPlus/Extensions/List.fs
@@ -76,12 +76,12 @@ module List =
76
/// <param name="x3">Third list.</param>
77
///
78
/// <returns>List with values returned from mapping function.</returns>
79
- let lift3 f x1 x2 x3 =
80
- #if !FABLE_COMPILER || FABLE_COMPILER_3 || FABLE_COMPILER_4
+ let lift3 (f: 'T1 -> 'T2 -> 'T3 -> 'U) (x1: list<'T1>) (x2: list<'T2>) (x3: list<'T3>) =
+ #if FABLE_COMPILER
81
List.allPairs x2 x3
82
|> List.allPairs x1
83
|> List.map (fun x -> (fst (snd x), snd (snd x), fst x))
84
- |> List.map (fun (x, y, z) -> f x y z)
+ |> List.map (fun (x, y, z) -> f z x y)
85
#else
86
let mutable coll = ListCollector<'U> ()
87
x1 |> List.iter (fun x1 ->
0 commit comments