Fun.
(defvar i 64 "just an int equal to 64")
(print i) // 64
(defvar int-list '(1 2 3)
"a list of ints") // list
(defvar int-vector [1 2 3]
"a vector of ints") // vector
(defun main (args)
"the main function"
(print (len args)))
(main '("one" "two")) // 2
(print (* 5 5)) // 25
- Basic expressions
- Lists
- Vectors
- Variable expressions
- Macro expressions
- Modules & imports
- Atom expressions like Int, String, Float, Rune
- Lists
- Vectors
- Macro expressions
- Modules & imports
- Simple expressions & internal functions
- REPL
- Functions and macros
- Modules & imports
- Starting...