Created
June 4, 2012 11:39
-
-
Save d11wtq/2867873 to your computer and use it in GitHub Desktop.
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
; Remove a given member from a list | |
(define rember | |
(lambda (a lat) | |
(cond | |
((null? lat) '()) | |
((eq? (car lat) a) (cdr lat)) | |
(else (cons (car lat) | |
(rember a (cdr lat))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment