-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba4f616
commit a773c85
Showing
9 changed files
with
550 additions
and
149 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
;; this for scheme implementation other than DrRacket and that do not have first and rest | ||
(define-syntax first | ||
(syntax-rules () | ||
((_ p) (car p)))) | ||
;; (define-syntax first | ||
;; (syntax-rules () | ||
;; ((_ p) (car p)))) | ||
|
||
;; (define-syntax rest | ||
;; (syntax-rules () | ||
;; ((_ p) (cdr p)))) | ||
|
||
|
||
(define first car) | ||
(define rest cdr) | ||
|
||
(define-syntax rest | ||
(syntax-rules () | ||
((_ p) (cdr p)))) |
This file contains 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
This file contains 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
Oops, something went wrong.