Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the recur Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Wed Jun 15 05:43:27 2022 GMT+0.
Next: Systems, Previous: The recur Reference Manual, Up: The recur Reference Manual [Contents][Index]
RECUR A simple library for Scheme's named LET. RECUR is a simple Lisp alternative Scheme's "named-LET". Scheme allows one to iterate like the following: (define (factorial n) (let fact ((n n) (prod 1)) (if (zero? n) prod (fact (- n 1) (* n prod))))) This is a useful idiom for Lisp as well. With this library, it is written (defun factorial (n) (recur fact ((n n) (prod 1)) (if (zerop n) prod (fact (1- n) (* n prod))))) This library exports a single macro, RECUR:RECUR, which is a replacement for Scheme's named-LET. The only caveat is that tail recursion is not strictly supported, though many implementations do support it (with some combination of OPTIMIZE declarations).
Next: Files, Previous: Introduction, Up: The recur Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
A simple alternative to Scheme’s named-LET.
Robert Smith <quad@symbo1ics.com>
Public Domain. See LICENSE.
Next: Packages, Previous: Systems, Up: The recur Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: recur/recur.lisp, Previous: recur/recur.asd, Up: Lisp [Contents][Index]
Previous: recur/package.lisp, Up: Lisp [Contents][Index]
package.lisp (file).
recur (system).
recur (macro).
Next: Definitions, Previous: Files, Up: The recur Reference Manual [Contents][Index]
Packages are listed by definition order.
Next: Indexes, Previous: Packages, Up: The recur Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Previous: Definitions, Up: Definitions [Contents][Index]
Previous: Public Interface, Up: Public Interface [Contents][Index]
A macro imitating Scheme’s named-LET.
Previous: Definitions, Up: The recur Reference Manual [Contents][Index]
Jump to: | M R |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
M | |||
Macro, recur : | Public macros | ||
| |||
R | |||
recur : | Public macros | ||
|
Jump to: | M R |
---|
Jump to: | F P R S |
---|
Jump to: | F P R S |
---|