()
| 834 | } |
| 835 | |
| 836 | public ISeq next(){ |
| 837 | Node t = (Node) stack.first(); |
| 838 | ISeq nextstack = push(asc ? t.right() : t.left(), stack.next(), asc); |
| 839 | if(nextstack != null) |
| 840 | { |
| 841 | return new Seq(nextstack, asc, cnt - 1); |
| 842 | } |
| 843 | return null; |
| 844 | } |
| 845 | |
| 846 | public int count(){ |
| 847 | if(cnt < 0) |