diff options
Diffstat (limited to 'a.lam')
-rw-r--r-- | a.lam | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/a.lam b/a.lam new file mode 100644 index 0000000..f85ee25 --- /dev/null +++ b/a.lam | |||
@@ -0,0 +1,13 @@ | |||
1 | ;; -*- scheme -*- | ||
2 | |||
3 | (define a (+ 1 2)) | ||
4 | (define b (* a 3)) | ||
5 | |||
6 | (define print | ||
7 | (lambda (x) | ||
8 | (display x) | ||
9 | (newline))) | ||
10 | |||
11 | (print a) | ||
12 | (print b) | ||
13 | (print (+ a b)) | ||