Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the recur Reference Manual, generated automatically by Declt version 2.4 "Will Decker" on Wed Jun 20 12:30:40 2018 GMT+0.
• Introduction: | What recur is all about | |
• Systems: | The systems documentation | |
• Files: | The files documentation | |
• Packages: | The packages documentation | |
• Definitions: | The symbols documentation | |
• Indexes: | Concepts, functions, variables and data types |
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: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The recur system: |
Robert Smith <quad@symbo1ics.com>
Public Domain. See LICENSE.
A simple alternative to Scheme’s named-LET.
recur.asd (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files: |
• The recur.asd file: | ||
• The recur/package.lisp file: | ||
• The recur/recur.lisp file: |
Next: The recur/package<dot>lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
recur.asd
recur (system)
Next: The recur/recur<dot>lisp file, Previous: The recur<dot>asd file, Up: Lisp files [Contents][Index]
Previous: The recur/package<dot>lisp file, Up: Lisp files [Contents][Index]
package.lisp (file)
recur (system)
recur.lisp
recur (macro)
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The recur package: |
package.lisp (file)
common-lisp
recur (macro)
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions: |
Previous: Definitions, Up: Definitions [Contents][Index]
• Exported macros: |
Previous: Exported definitions, Up: Exported definitions [Contents][Index]
A macro imitating Scheme’s named-LET.
recur.lisp (file)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index: | ||
• Function index: | ||
• Variable index: | ||
• Data type index: |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L R |
---|
Jump to: | F L R |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | M R |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
M | |||
Macro, recur : | Exported macros | ||
| |||
R | |||
recur : | Exported macros | ||
|
Jump to: | M R |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | P R S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
P | |||
Package, recur : | The recur package | ||
| |||
R | |||
recur : | The recur system | ||
recur : | The recur package | ||
| |||
S | |||
System, recur : | The recur system | ||
|
Jump to: | P R S |
---|