(IFn f)
| 165 | } |
| 166 | |
| 167 | public Object reduce(IFn f) { |
| 168 | Object acc = start; |
| 169 | Number i = Numbers.addP(start, step); |
| 170 | while(! boundsCheck.exceededBounds(i)) { |
| 171 | acc = f.invoke(acc, i); |
| 172 | if (RT.isReduced(acc)) return ((Reduced)acc).deref(); |
| 173 | i = Numbers.addP(i, step); |
| 174 | } |
| 175 | return acc; |
| 176 | } |
| 177 | |
| 178 | public Object reduce(IFn f, Object val) { |
| 179 | Object acc = val; |
nothing calls this directly
no test coverage detected