File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
demo/src/main/java/fj/demo Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ public static void main(final String[] args) {
1919 final Option <Integer > o6 = o3 .filter (even );
2020
2121 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 );
22+ final Option <Integer > o7 = o4 .filter (f );
23+ final Option <Integer > o8 = o5 .filter (f );
24+ final Option <Integer > o9 = o6 .filter (i -> i % 2 == 0 );
2525
26- optionShow (intShow ).println (o4 ); // None
27- optionShow (intShow ).println (o5 ); // None
28- optionShow (intShow ).println (o6 ); // Some(8)
26+ optionShow (intShow ).println (o7 ); // None
27+ optionShow (intShow ).println (o8 ); // None
28+ optionShow (intShow ).println (o9 ); // Some(8)
2929 }
3030}
You can’t perform that action at this time.
0 commit comments