Relocated

This commit is contained in:
Justin Ethier 2016-02-05 22:55:16 -05:00
parent f47b3be216
commit 53be15015a
2 changed files with 15 additions and 10 deletions

View file

@ -1,10 +0,0 @@
;; An example of using begin to splice in definitions
(import (scheme base )
(scheme write))
(begin
(define tmp1 1)
(define tmp2 2))
(write `(,tmp1 ,tmp2))

View file

@ -0,0 +1,15 @@
;; An example of using begin to splice in definitions. As the
;; spec states:
;;
;; "It causes the contained expressions and definitions to be
;; evaluated exactly as if the enclosing begin construct were
;; not present."
(import (scheme base )
(scheme write))
(begin
(define tmp1 1)
(define tmp2 2))
(write `(,tmp1 ,tmp2))