LIST WORDS Version 1.2.4 David N. Williams August 28, 2021 Below is a functional listing of the words in the lists package for the four kinds of list. The only files that an application needs to load explicitly are sslist.fs, dslist.f, sdlist.fs, or ddlist.fs, or any subset of those four. The words in the COMMON section below are loaded in all four cases, and are not listed in the remaining four sections. For each of snode.fs, dnode.fs, sendlist.fs, and dendlist.fs, the words are loaded in two cases; and they are listed in both of the corresponding sections. 0. COMMON nodespace.fs ------------ Global value: CURRENT-NODES Node-space structure: /NODE-SPACE-HEADER >#NODES >/NODE-DATA >/NODE-HEADER >BEGIN-NODES >LAST-UNUSED INITIALIZE-NODES MAKE-NODES 0UNUSED-NODES ?NEW-NODE NEW-NODE UNUSE-NODE Uncommentable: MAKE-NODES: DUMP-NODES NODES-UNUSED 1. SINGLE-ENDED, SINGLE-LINKED The file sslist.fs loads snode.fs, sendlist.fs, and nodespace.fs. sslist.fs --------- SSINSERT-AFTER SSPREPEND SSUNLINK-FIRST SSUNLINK-NEXT SSUNUSE-FIRST SSUNUSE-NEXT snode.fs -------- Single-linked node structure: /SNODE-DATA: /SNODE-HEADER sendlist.fs ----------- Global value: CURRENT-LIST EMPTY-SEND-LIST MAKE-SEND-LIST SEND-LIST: Uncommentable: LIST-EMPTY? LIST-HEAD! LIST-HEAD@ 2. DOUBLE-ENDED, SINGLE-LINKED The file dslist.fs loads snode.fs, dendlist.fs, and nodespace.fs. dslist.fs --------- DSAPPEND DSINSERT-AFTER DSPREPEND DSUNLINK-FIRST DSUNLINK-NEXT DSUNUSE-FIRST DSUNUSE-NEXT snode.fs -------- Single-linked node structure: /SNODE-DATA: /SNODE-HEADER dendlist.fs ----------- Global value: CURRENT-LIST EMPTY-DEND-LIST MAKE-DEND-LIST Uncommentable: DEND-LIST: LIST-EMPTY? LIST-HEAD! LIST-HEAD@ LIST-TAIL! LIST-TAIL@ 3. SINGLE-ENDED, DOUBLE-LINKED The file sdlist.fs loads dnode.fs, sendlist.fs, and nodespace.fs. sdlist.fs --------- SDINSERT-AFTER SDPREPEND SDUNLINK SDUNLINK-FIRST SDUNUSE SDUNUSE-FIRST dnode.fs -------- Double-linked node structure: /DNODE-DATA: /DNODE-HEADER >NXNODE >PREVNODE sendlist.fs ----------- Global value: CURRENT-LIST EMPTY-SEND-LIST MAKE-SEND-LIST SEND-LIST: Uncommentable: LIST-EMPTY? LIST-HEAD! LIST-HEAD@ 4. DOUBLE-ENDED, DOUBLE-LINKED The file ddlist.fs loads dnode.fs, dendlist.fs, and nodespace.fs. ddlist.fs --------- DDAPPEND DDINSERT-AFTER DDINSERT-BEFORE DDPREPEND DDUNLINK DDUNLINK-FIRST DDUNLINK-LAST DDUNUSE DDUNUSE-FIRST DDUNUSE-LAST dnode.fs -------- Double-linked node structure: /DNODE-DATA: /DNODE-HEADER >NXNODE >PREVNODE dendlist.fs ----------- Global value: CURRENT-LIST EMPTY-DEND-LIST MAKE-DEND-LIST Uncommentable: DEND-LIST: LIST-EMPTY? LIST-HEAD! LIST-HEAD@ LIST-TAIL! LIST-TAIL@