hello world scheme

This commit is contained in:
Geir Okkenhaug Jerstad 2024-08-18 20:55:31 +02:00
parent df997591b6
commit c43a63cc2e

View file

@ -1 +1,18 @@
;; Hello world as a variable
(define vhello "Hello world")
;; Hello World as a function
(define fhello (lambda ()
"hello world"))
;; hello with name
(define hello
(lambda (name)
(string-append "hello " name "!")))
;; sum of three numbers
(define sum3
(lambda (a b c)
(+ a b c)))
;; display message on screen
(display "Hello World!")