signature MLTON_VECTOR = sig val unfoldi: int * 'b * (int * 'b -> 'a * 'b) -> 'a vector end
-
unfoldi (n, b, f)
-
constructs a vector v of a length n, whose elements vi are determined by the equations b0 = b and (vi, bi+1) = f (i, bi).
MLton 20051202 | MLtonVector |
|
Home Index |
signature MLTON_VECTOR = sig val unfoldi: int * 'b * (int * 'b -> 'a * 'b) -> 'a vector end
unfoldi (n, b, f)