An identical double-ended queue (deque) API is supported by both arrays and strings. A string can be thought of as an array which only contains characters.
Returns the number of items in a collection.
#t if a collection contains no items.
Retrieves an item from a collection.
Mutates an item in a collection.
#t if a collection contains a particular item.
Removes an item from a collection, and returns it.
Deletes an item from a collection, without returning it.
Deletes all items from a collection.
Maps a function over a collection, preserving syntax information.
Constructs a new, mutable array.
Constructs a new, mutable array by repeating a value.
Appends one or more elements to the end of a deque.
Prepends one or more elements to the beginning of a deque.
Removes the deque's last element, and returns it.
Removes the deque's first element, and returns it.
Inserts one or more elements into a deque.
Increases a deque's size.
Reduces a deque's size.
Swaps an element with the deque's last element, then removes it and returns it.
Swaps an element with the deque's first element, then removes it and returns it.
Returns a sorted copy of a deque.
Sorts a deque in-place.
Tests whether one deque is the prefix of another.
Tests whether one deque is the suffix of another.
Searches within a deque.
Searches backwards within a deque.
Reverses a deque in-place.
Maps a function over a deque in-place.
Filters a deque in-place.
Combines an array of deques into one deque.