Next: deques searching, Previous: deques folding, Up: deques [Index]
The following syntactic bindings are exported by the library
(vicare containers deques)
. The syntactic bindings whose name
is prefixed with $
are unsafe operations: they do not
validate their arguments before accessing them.
Iterate over all the objects in src-deque, starting from the front side, apply fun to them, push the result of the application in the rear side of dst-deque.
(deque->list (deque-map-left (deque) - (deque 0 1 2 3))) ⇒ (0 -1 -2 -3)
The dst-deque argument allows us to build the destination deque with the desired configuration parameters.
Iterate over all the objects in src-deque, starting from the rear side, apply fun to them, push the result of the application in the front side of dst-deque.
(deque->list (deque-map-right (deque) - (deque 0 1 2 3))) ⇒ (0 -1 -2 -3)
The dst-deque argument allows us to build the destination deque with the desired configuration parameters.
Aliases for deque-map-left
and $deque-map-left
.
Iterate over all the objects in deque, starting from the front side, and apply fun to them discarding the return value.
Iterate over all the objects in deque, starting from the rear side, and apply fun to them discarding the return value.
Aliases for deque-for-each-left
and $deque-for-each-left
.
Next: deques searching, Previous: deques folding, Up: deques [Index]