https://github.com/stylewarning/defrec
https://github.com/stylewarning/defrec
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stylewarning/defrec
- Owner: stylewarning
- License: bsd-3-clause
- Created: 2023-04-09T22:07:20.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-09T22:18:33.000Z (about 3 years ago)
- Last Synced: 2025-03-25T23:34:10.450Z (over 1 year ago)
- Language: Common Lisp
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
DEFREC
------
By Robert Smith
DEFREC is a library for defining "top-level" mutually recursive
functions.
Example:
(defrec
(even (x)
(declare (type unsigned-byte x))
(if (zerop x) t (odd (1- x))))
(odd (x)
(declare (type unsigned-byte x))
(if (zerop x) nil (even (1- x)))))
Now we can call EVEN and ODD.