We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b8248c commit 0ca5248Copy full SHA for 0ca5248
1 file changed
quickcheck/src/main/java/fj/test/Shrink.java
@@ -138,9 +138,9 @@ public static <A> Shrink<A> empty() {
138
if (i == 0L)
139
return nil();
140
else {
141
- final Stream<Long> is = cons(0L, P.lazy(() -> iterate(x -> x / 2L, i).takeWhile(x2 -> x2 != 0L).map(x1 -> i - x1)));
+ final Stream<Long> is = cons(0L, () -> iterate(x -> x / 2L, i).takeWhile(x2 -> x2 != 0L).map(x1 -> i - x1));
142
143
- return i < 0L ? cons(-i, P.lazy(() -> is)) : is;
+ return i < 0L ? cons(-i, () -> is) : is;
144
}
145
});
146
0 commit comments