scheme/yast/hello.scm

19 lines
351 B
Scheme
Raw Normal View History

2024-08-18 20:55:31 +02:00
;; 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
2024-08-18 12:29:43 +02:00
(display "Hello World!")