Constructs a new, mutable array by repeating a value.
reps
must be non-negative. Returns an array which contains elem
, repeated
reps
times.
(ensure (eq? '(#t #t #t) (arr-from-elem #t 3)))
Constructs a new, mutable array by repeating a value.
reps
must be non-negative. Returns an array which contains elem
, repeated
reps
times.
(ensure (eq? '(#t #t #t) (arr-from-elem #t 3)))