small sync

This commit is contained in:
Geir Okkenhaug Jerstad 2024-09-02 08:59:04 +02:00
commit 8d2504ab47
5 changed files with 1269 additions and 5 deletions

View file

@ -1,5 +0,0 @@
; The first program
(begin
(display "Hello, World!")
(newline))

BIN
hello

Binary file not shown.

File diff suppressed because it is too large Load diff

11
little_schemer/tls.ss Normal file
View file

@ -0,0 +1,11 @@
(define atom?
(lambda (x)
(and (not (pair? x)) (not (null? x)))))
(define add1
(lambda (x)
(+ x 1)))
(define sub1
(lambda (x)
(- x 1)))

View file

@ -14,5 +14,16 @@
(lambda (a b c)
(+ a b c)))
(define add1
(lambda (a)
(+ a 1)))
(define sub1
(lambda (b)
(- b 1)))
(display(string-append "sub1 to 2 is " (number->string(sub1 2)) "\n"))
;; display message on screen
(display "Hello World!")