cl-containers

2026-11-29

A generic container library for Common Lisp

Upstream URL

github.com/gwkkwg/cl-containers

Author

Brendan Burns, Andrew Hannon, Brent Heeringa, Gary King, Joshua Moody, Charles Sutton, Louis Theran, David Westbrook, and other former students and staff of EKSL., Gary King <gwking@metabang.com>

Maintainer

Gary Warren King <gwking@metabang.com>

License

MIT Style License
README

cl-containers

Containers Library for Common Lisp

Ring buffers

(make-ring-buffer capacity) makes a bounded FIFO queue. Inserting into a full buffer discards the oldest element. Pass a true second argument to visit the same stored elements newest first. For example, after inserting a, nil, and b into a FIFO buffer of capacity two, container->list returns (nil b).

item-at and delete-item-at use indices modulo the current size in the buffer's traversal order. delete-item-at returns the removed element, or nil for an empty buffer.

Dependencies (4)

  • cl-variates
  • lift
  • metatilities-base
  • moptilities
  • GitHub
  • Quicklisp