We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 071190f commit 8ceeb22Copy full SHA for 8ceeb22
1 file changed
demo/src/main/java/fj/demo/Option_filter.java
@@ -19,12 +19,12 @@ public static void main(final String[] args) {
19
final Option<Integer> o6 = o3.filter(even);
20
21
F<Integer, Boolean> f = i -> i % 2 == 0;
22
- final Option<Integer> o7 = o1.filter(f);
23
- final Option<Integer> o8 = o1.filter(f);
24
- final Option<Integer> o9 = o1.filter(i -> i % 2 == 0);
+ final Option<Integer> o7 = o4.filter(f);
+ final Option<Integer> o8 = o5.filter(f);
+ final Option<Integer> o9 = o6.filter(i -> i % 2 == 0);
25
26
optionShow(intShow).println(o4); // None
27
optionShow(intShow).println(o5); // None
28
- optionShow(intShow).println(o6); // Some(8)
+ optionShow(intShow).println(o6); // Some(4)
29
}
30
0 commit comments