Commit b86d0e5e authored by Chris Müller's avatar Chris Müller
Browse files

update examples in features.cherry.

parent 712c344f
......@@ -44,11 +44,12 @@
;; if statements (supported operators: and, or, not, <, >, >=, =<, =)
(define (max a b)
(if (or (and (1 > a) (2 < b))
(not false) true)
(not false)
true)
(println "True")
(if (= a b)
(println "a = b")
(pritnln "a != b"))))
(if (= a b)
(println "a = b")
(pritnln "a != b"))))
;; named let / recursive looping
(define (range from to)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment