Skip to content

Commit c3b0227

Browse files
authored
Fix Array.lift3
1 parent ac120e9 commit c3b0227

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FSharpPlus/Extensions/Array.fs

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module Array =
4949
let lenx, leny, lenz = Array.length list1, Array.length list2, Array.length list3
5050
let combinedFirstTwo = Array.init (lenx * leny) (fun i -> let (d, r) = Math.DivRem (i, leny) in (list1.[d], list2.[r]))
5151

52-
Array.init (lenx * leny * lenz) (fun i -> let (d, r) = Math.DivRem (i, leny) in combinedFirstTwo.[d], list3.[r])
52+
Array.init (lenx * leny * lenz) (fun i -> let (d, r) = Math.DivRem (i, lenz) in combinedFirstTwo.[d], list3.[r])
5353
|> Array.map (fun x -> mapping (fst (fst x)) (snd (fst x)) (snd x))
5454

5555
/// Concatenates all elements, using the specified separator between each element.
@@ -284,4 +284,4 @@ module Array =
284284
let fi x =
285285
i.Value <- i.Value + 1
286286
mapping i.Value x
287-
Array.choose fi source
287+
Array.choose fi source

0 commit comments

Comments
 (0)