add begin.

This commit is contained in:
Jan Nieuwenhuizen 2016-07-10 15:19:20 +02:00
parent 1584bb8701
commit b3d105ad50
2 changed files with 9 additions and 0 deletions

View file

@ -92,3 +92,6 @@
(cons 'let (cons (unspecified-bindings bindings '())
(append (letrec-setters bindings '())
body))) )
(define (begin . rest)
(let () rest))

View file

@ -155,4 +155,10 @@
(factorial 4)))
(newline)
(define a 2)
(begin
(display 'a+3=)
(display (+ a 3)))
(newline)
'()