Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonatack/the_little_schemer_in_common_lisp
The Little Schemer code exercises in Common Lisp.
https://github.com/jonatack/the_little_schemer_in_common_lisp
common-lisp exercise scheme
Last synced: about 5 hours ago
JSON representation
The Little Schemer code exercises in Common Lisp.
- Host: GitHub
- URL: https://github.com/jonatack/the_little_schemer_in_common_lisp
- Owner: jonatack
- Created: 2015-11-10T23:28:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-05T22:00:18.000Z (almost 9 years ago)
- Last Synced: 2023-06-10T08:10:18.091Z (over 1 year ago)
- Topics: common-lisp, exercise, scheme
- Language: Common Lisp
- Homepage:
- Size: 6.84 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Code exercises in Common Lisp for
# The Little Schemer, 4th Ed. (Friedman/Felleisen)While working through "The Little Schemer", I wanted to do the code exercises in Common Lisp. Feel free to let me know about any bugs or non-idiomatic code.
### The Ten Commandments
1. The First Commandment
When recurring on a list of atoms, *lat*, ask two questions about it: (*null lat*) and **t** (else).
When recurring on a number, *n*, ask two questions about it: (*zerop n*) and **t**.
When recurring on a list of S-expressions, *l*, ask three questions about it: (*null l*), (*atom* (*car l*)), and **t**.2. The Second Commandment
Use *cons* to build lists.
3. The Third Commandment
When building a list, describe the first typical element, and then *cons* it onto the natural recursion.