-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Actual result:
default Enumerable<X> after(Predicate<X> prd, long size) {
final Enumerable<X> out;
if (size < 0) {
throw new IllegalArgumentException(Long.toString(size));
} else if (size == 0) {
out = new Empty<>();
} else if (prd == null) {
out = new Linked<>(this.stream().limit(size).collect(Collectors.toList()));
} else {
...Expected result:
default Enumerable<X> after(Predicate<X> prd, long size) {
final Enumerable<X> out;
if (size < 0) {
throw new IllegalArgumentException(Long.toString(size));
} else if (size == 0 || prd == null) {
out = new Empty<>();
} else {
...Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers