Created
January 9, 2013 15:58
-
-
Save tcdowney/4494254 to your computer and use it in GitHub Desktop.
Definition for lat? for The Little Schemer. #myversion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; A lat is a list of atoms. | |
| (define lat? | |
| (lambda (l) | |
| (cond | |
| ((null? l) #t) | |
| ((not (atom? (car l))) #f) | |
| (else (lat? (cdr l)))))) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Atom? definition for Schemes that lack it.
https://gist.github.com/4485191