doubly linked list in common lisp

Table of Contents

(defstruct element
  (value 0 :type fixnum)
  (next nil :type (or element null))
  (prev nil :type (or element null)))

Note that both next and prev initialize to nil, and they are typed to make it faster

Backlinks

common lisp

common lisp is a specification lisp, with various of implementation. SBCL is what I refer to most here.

Author: Linfeng He

Created: 2024-04-03 Wed 20:17