cyclone/docs/api/srfi/117.md
Justin Ethier 0d5cfec7f2 WIP
2016-09-30 17:21:23 -04:00

2.2 KiB

SRFI 117 - Queues based on lists

The (srfi 117) library defines list queues; mutable ordered collections that can contain any Scheme object. Each list queue is based on an ordinary Scheme list containing the elements of the list queue by maintaining pointers to the first and last pairs of the list. It's cheap to add or remove elements from the front of the list or to add elements to the back, but not to remove elements from the back.

See the SRFI document for more information.

#make-list-queue #list-queue #list-queue-copy #list-queue-unfold #list-queue-unfold-right #list-queue? #list-queue-empty? #list-queue-front #list-queue-back #list-queue-list #list-queue-first-last #list-queue-add-front! #list-queue-add-back! #list-queue-remove-front! #list-queue-remove-back! #list-queue-remove-all! #list-queue-set-list! #list-queue-append #list-queue-append! #list-queue-concatenate #list-queue-append #list-queue-append! #list-queue-concatenate #list-queue-map #list-queue-map! #list-queue-for-each