…
(ideque-fold proc nil ideque ...)
(ideque-fold-right proc nil ideque ...)
Invokes proc on the corresponding elements of ideques in forward/reverse order, passing the result of the previous invocation as a second argument. For the first invocation, nil is used as the second argument. Returns the result of the last invocation, or nil if there was no invocation. Terminates when any ideque is finished. Takes O(n) time.
(ideque-reverse ideque)
Returns an ideque containing the elements of ideque in reverse order. Takes O(n) time.