ring-ref

ring-ref is a compiled Lisp function in `ring.el'.

(ring-ref RING INDEX)

Return RING's INDEX element.
INDEX = 0 is the most recently inserted; higher indices
correspond to older elements.
INDEX need not be <= the ring length; the appropriate modulo operation
will be performed.