let
init n f =
let
v = create n
false
in
for
i = 0
to
pred n
do
unsafe_set v i (f i)
done
;
v