The functions in this section treat the collection as a doubly linked list.
(tin-nth collection n)
nil
is returned if there is less than n
cookies. If n is negative, return the
-(n+1)th last element. Thus, (tin-nth dll 0)
returns the first node, and (tin-nth dll -1)
returns the last node.
Use tin-cookie
to extract the cookie from the tin (or use
cookie-nth
instead).
(cookie-nth collection n)
tin-nth
, but the cookie is returned instead of
the tin.
(tin-next collection tin)
nil
or refers to the last cookie in collection.
(tin-previous collection tin)
nil
or refers to the first cookie in
collection.
(cookie-sort collection predicate)
(cookie-first collection)
(cookie-last collection)
Go to the first, previous, next, last section, table of contents.