vector-fill!
-- r7rs
Definition mutator!
;
vector-fill!
(from vonuvoli
);Procedure variants:
((vector any) -> (undefined))
((vector any range-start) -> (undefined))
vector
;any
;range-start
;undefined
;((vector any range-start range-end) -> (undefined))
vector
;any
;range-start
;range-end
;undefined
;scheme:base
-- (scheme base)
;scheme
-- (scheme)
;(vector-fill! vector fill) (vector-fill! vector fill start) (vector-fill! vector fill start end)
The
vector-fill!
procedure storesfill
in the elements ofvector
betweenstart
andend
.(define a (vector 1 2 3 4 5)) (vector-fill! a 'smash 2 4) a ===> #(1 2 smash smash 5)
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.