CMU Artificial Intelligence Repository
Home INFO Search FAQs Repository Root

SLOOP: William Schelter's SLOOP iteration facility.

SLOOP is a Common Lisp portable iteration facility written by William Schelter. SLOOP is extremely user extensible, allowing one to easily redefine the behavior and add additional collections and iteration paths. There is a significant amount of backwards compatibility with the original MIT loop macro. The file includes several examples of extensions, such as .. FOR v IN-FRINGE x .. (iterate through the fringe of a tree x) .. SUM v .. (add the v) .. AVERAGING v .. .. FOR sym IN-PACKAGE y (iterate through symbols in a package y) .. COLLATE v .. (for collecting X into an ordered list), .. FOR (elt i) IN-ARRAY ar (iterate through array ar, with index i) .. FOR (key elt) IN-TABLE foo.. (if foo is a hash table)

Copying: Copying and use allowed. Modification not allowed. Copyright (c) 1985, 1986 by William Schelter. The behavior of the SLOOP macro may be changed after loading by resetting some of the global variables near the beginning of the file. But changes to the file itself are prohibited. CD-ROM: Prime Time Freeware for AI, Issue 1-1 Bug Reports: Author(s): William Schelter, Keywords: Authors!Schelter, Iteration!SLOOP Macro, Lisp!Iteration, SLOOP Macro References: ?
Last Web update on Mon Feb 13 10:30:05 1995