Skip to content

Commit e2926a6

Browse files
authored
Fix List.lift3
1 parent c3b0227 commit e2926a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FSharpPlus/Extensions/List.fs

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ module List =
7676
/// <param name="x3">Third list.</param>
7777
///
7878
/// <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
79+
let lift3 (f: 'T1 -> 'T2 -> 'T3 -> 'U) (x1: list<'T1>) (x2: list<'T2>) (x3: list<'T3>) =
80+
#if FABLE_COMPILER
8181
List.allPairs x2 x3
8282
|> List.allPairs x1
8383
|> List.map (fun x -> (fst (snd x), snd (snd x), fst x))
84-
|> List.map (fun (x, y, z) -> f x y z)
84+
|> List.map (fun (x, y, z) -> f z x y)
8585
#else
8686
let mutable coll = ListCollector<'U> ()
8787
x1 |> List.iter (fun x1 ->

0 commit comments

Comments
 (0)