Vector.mli.equiv 130 Bytes
Newer Older
Mário Pereira's avatar
Mário Pereira committed
1 2 3 4 5 6
let iteri f a = for i = 0 to length a - 1 do f i (get a i) done

let iter f a =
  for i = 0 to length a - 1 do f (get a i) done