(def (addn
(lambda (n)
(lambda (x) (add: x n)))))
(def (inc (addn 1)))
(print (inc 1))
data := [ 1 2 23 42 ]
data.each { :n stdout.print n.tostring }
Which parses into the s-expression:
(def (data (list 1 2 23 42))) (each: data (lambda (n) (print: stdout (tostring: n))))These examples may seem quite alien if you don't know Lisp or Smalltalk, but don't worry! Tim toady and all that.