complete specs: [url removed, login to view]~enicolaiov/[url removed, login to view] List-of is a macro that simplifies collecting lists of values of expressions. Though this description is long, and the macro is powerful, it's actually quite simple and can be implemented with relatively little code. The general syntax is (LIST-OF exp generator-or-filter generator-or-filter ...) It's easiest to explain by starting with simple examples. > (list-of (1+ x) (x :in '(1 2 3))) (2 3 4)
Complete and fully-functional working program in complete source code of all work done, written in Common Lisp(will be tested with Allegro CL 8.0).