(IFn f)
| 548 | } |
| 549 | |
| 550 | public Object reduce(IFn f) { |
| 551 | Object ret = v.nth(i); |
| 552 | for(int x = i + 1; x < v.count(); x++) { |
| 553 | ret = f.invoke(ret, v.nth(x)); |
| 554 | if (RT.isReduced(ret)) return ((IDeref)ret).deref(); |
| 555 | } |
| 556 | return ret; |
| 557 | } |
| 558 | |
| 559 | public Object reduce(IFn f, Object start) { |
| 560 | Object ret = f.invoke(start, v.nth(i)); |