Next: vectors prefix, Previous: vectors select, Up: vectors [Index]
Build a vector of length requested-len comprised of vec padded on the left or right by as many occurrences of the item fill-item as needed. Always return a newly allocated vector.
If vec has more than requested-len items, it is truncated on
the left or right to length requested-len. For the macros:
fill-item defaults to #f
.
(vector-pad '#(1 2 3)) ⇒ #(#f #f 1 2 3) (vector-pad '#(1 2 3 4 5) 5) ⇒ #(1 2 3 4 5) (vector-pad '#(9 9 1 2 3 4 5) 5) ⇒ #(1 2 3 4 5)
Trim the selected subvector of vec by skipping over all items on the left/on the right/on both sides that satisfy pred: A test predicate that is applied to the items in vec, an item causing it to return true is skipped.
Always return a newly allocated vector.