Skip to content

Commit

Permalink
replaced last with lastOrNull in xtend-euler
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed May 4, 2024
1 parent cbb2edc commit bfb3c4e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Expand Up @@ -22,7 +22,7 @@ import com.google.common.collect.AbstractIterator
class Solution_003 extends AbstractIterator<Long> {

def static void main(String[] args) {
println(new Solution_003().last)
println(new Solution_003().lastOrNull)
}

long compound = 600851475143L
Expand Down
Expand Up @@ -28,6 +28,6 @@ class Solution_015b {
set(col, get(col - 1) + get(col))
]
]
println(last)
println(lastOrNull)
}
}
Expand Up @@ -43,7 +43,7 @@ import com.google.common.collect.AbstractIterator
class Solution_025 extends AbstractIterator<Integer> {

def static void main(String[] args) {
println(new Solution_025().last)
println(new Solution_025().lastOrNull)
}

BigInteger max = 10bi.pow(999)
Expand Down
Expand Up @@ -27,7 +27,7 @@
@SuppressWarnings("all")
public class Solution_003 extends AbstractIterator<Long> {
public static void main(final String[] args) {
InputOutput.<Long>println(IteratorExtensions.<Long>last(new Solution_003()));
InputOutput.<Long>println(IteratorExtensions.<Long>lastOrNull(new Solution_003()));
}

private long compound = 600851475143L;
Expand Down
Expand Up @@ -43,6 +43,6 @@ public static void main(final String[] args) {
new IntegerRange(1, gridSize).forEach(_function_2);
};
new IntegerRange(1, gridSize).forEach(_function_1);
InputOutput.<Long>println(IterableExtensions.<Long>last(it));
InputOutput.<Long>println(IterableExtensions.<Long>lastOrNull(it));
}
}
Expand Up @@ -45,7 +45,7 @@
@SuppressWarnings("all")
public class Solution_025 extends AbstractIterator<Integer> {
public static void main(final String[] args) {
InputOutput.<Integer>println(IteratorExtensions.<Integer>last(new Solution_025()));
InputOutput.<Integer>println(IteratorExtensions.<Integer>lastOrNull(new Solution_025()));
}

private BigInteger max = BigInteger.TEN.pow(999);
Expand Down

0 comments on commit bfb3c4e

Please sign in to comment.