cyclone/examples/begin-splicing.scm
Justin Ethier 53be15015a Relocated
2016-02-05 22:55:16 -05:00

15 lines
343 B
Scheme

;; 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))