Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public Spliterator<A> trySplit() {
- if (!(it.isEmpty()
- || it.tl.isEmpty()
- || it.tl.tl.isEmpty()
- || it.tl.tl.tl.isEmpty()
- || it.tl.tl.tl.tl.isEmpty())) {
- Spliterator<A> result
- =new LL<>(it.hd
- , new LL<>(it.tl.hd
- , new LL<>(it.tl.tl.hd
- , new LL<>(it.tl.tl.tl.hd
- , new LL<>())))).getSpliterator();
- it = it.tl.tl.tl.tl;
- return result;
- }
- return null;
- }
- @Override
- public long estimateSize() {
- return Long.MAX_VALUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement