Skip to content

Commit b707324

Browse files
committed
Merge pull request #249 from puffnfresh/bug/list-backwards-traverseio
Fix backwards List#traverseIO
2 parents 2704557 + c778540 commit b707324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/fj/data/List.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ public <B> P1<List<B>> traverseP1(final F<A, P1<B>> f){
640640

641641
public <B> IO<List<B>> traverseIO(F<A, IO<B>> f) {
642642
return this.foldRight(
643-
(a, acc) -> IOFunctions.bind(acc, (bs) -> IOFunctions.map(f.f(a), b -> bs.cons(b))),
643+
(a, acc) -> IOFunctions.bind(f.f(a), b -> IOFunctions.map(acc, bs -> bs.cons(b))),
644644
IOFunctions.unit(List.<B>nil())
645645
);
646646
}

0 commit comments

Comments
 (0)