(IPersistentVector v, int start, int end)
| 1630 | } |
| 1631 | |
| 1632 | static public IPersistentVector subvec(IPersistentVector v, int start, int end){ |
| 1633 | if(end < start || start < 0 || end > v.count()) |
| 1634 | throw new IndexOutOfBoundsException(); |
| 1635 | if(start == end) |
| 1636 | return PersistentVector.EMPTY; |
| 1637 | return new APersistentVector.SubVector(null, v, start, end); |
| 1638 | } |
| 1639 | |
| 1640 | /** |
| 1641 | * **************************************** list support ******************************* |