@Override public void each(VectorProcedure procedure) { for (int i = 0; i < length; i++) { procedure.apply(i, get(i)); } }
@Override public void each(VectorProcedure procedure) { for (int i = 0; i < cardinality; i++) { procedure.apply(indices[i], values[i]); } }