Added basics.lisp
This commit is contained in:
9
examples/basics.lisp
Normal file
9
examples/basics.lisp
Normal file
@@ -0,0 +1,9 @@
|
||||
; basics
|
||||
(
|
||||
; define a variable
|
||||
(def a 25)
|
||||
(echo a)
|
||||
|
||||
; define a function
|
||||
(defn add-two (a) (add 2 a))
|
||||
(echo (add-two 4)))
|
||||
Reference in New Issue
Block a user