(Object o)
| 542 | } |
| 543 | |
| 544 | public int lastIndexOf(Object o) { |
| 545 | if (o instanceof Byte) { |
| 546 | byte b = ((Byte) o).byteValue(); |
| 547 | for (int j = array.length - 1; j >= i; j--) |
| 548 | if (b == array[j]) return j - i; |
| 549 | } |
| 550 | if (o == null) { |
| 551 | return -1; |
| 552 | } |
| 553 | for (int j = array.length - 1; j >= i; j--) |
| 554 | if (o.equals(array[j])) return j - i; |
| 555 | return -1; |
| 556 | } |
| 557 | } |
| 558 | |
| 559 | static public class ArraySeq_char extends ASeq implements IndexedSeq, IReduce{ |