We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b11003 commit 38fe3f7Copy full SHA for 38fe3f7
1 file changed
src/main/java/com/jnape/palatable/lambda/functions/Effect.java
@@ -7,8 +7,8 @@
7
import java.util.function.Consumer;
8
import java.util.function.Function;
9
10
-import static com.jnape.palatable.lambda.io.IO.io;
11
import static com.jnape.palatable.lambda.functions.builtin.fn1.Constantly.constantly;
+import static com.jnape.palatable.lambda.io.IO.io;
12
13
/**
14
* A function returning "no result", and therefore only useful as a side-effect.
@@ -78,7 +78,7 @@ static Effect<Unit> effect(Runnable runnable) {
78
* @param <A> the effect argument type
79
* @return the effect
80
*/
81
- static <A> Effect<A> effect(Fn1<A, ? extends IO<?>> fn) {
+ static <A> Effect<A> effect(Fn1<? super A, ? extends IO<?>> fn) {
82
return a -> fn.apply(a).unsafePerformIO();
83
}
84
0 commit comments