Skip to content

Commit 1bb00f1

Browse files
committed
Fixed #133
Effect.f(Effect0) now does not ignore its argument
1 parent 206afa6 commit 1bb00f1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎core/src/main/java/fj/Effect.java‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ public class Effect {
2222
private Effect() {}
2323

2424
public static P1<Unit> f(Effect0 e) {
25-
return P.lazy(u -> unit());
25+
return P.lazy(() -> {
26+
e.f();
27+
return unit();
28+
});
2629
}
2730

2831
/**

0 commit comments

Comments
 (0)