mirror stream [Macro]

Enumerates a period of items from the item stream stream followed by a strict retrograde of that period. stream may implement any pattern.

Example:

? (setf x (mirror (items a b c d in heap)))
#<FUNCTIONAL-ITEM-STREAM 137562641>

? (read-items x 16)
(A D B C C B D A D C B A A B C D)

See Also:

repeat, retrograde


Last Modified: 5-Mar-1998