Advertisement
sad101

Untitled

Nov 14th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. (let ((a (list 1 2 3))
  2.       (b (list 4 5 6)))
  3.      (cons a b))
  4. ; expect ((1 2 3) 4 5 6)
  5.  
  6. (let ((a 1)) (let ((b a)) (let ((c a)) (+ b c))))
  7. ; expect 2
  8.  
  9. (let ((x 1) (x 2) (y 3)) (+ x y))
  10. ; expect Error: duplicate symbol: x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement