Advertisement
Guest User

Untitled

a guest
May 20th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. @Override
  2. public Spliterator<A> trySplit() {
  3. if (!(it.isEmpty()
  4. || it.tl.isEmpty()
  5. || it.tl.tl.isEmpty()
  6. || it.tl.tl.tl.isEmpty()
  7. || it.tl.tl.tl.tl.isEmpty())) {
  8. Spliterator<A> result
  9. =new LL<>(it.hd
  10. , new LL<>(it.tl.hd
  11. , new LL<>(it.tl.tl.hd
  12. , new LL<>(it.tl.tl.tl.hd
  13. , new LL<>())))).getSpliterator();
  14. it = it.tl.tl.tl.tl;
  15. return result;
  16. }
  17. return null;
  18. }
  19.  
  20. @Override
  21. public long estimateSize() {
  22. return Long.MAX_VALUE;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement