Conditionals |
โ |
|
(if positive? 1 -1) |
Zero-based numbering |
โ |
|
|
Switch Statements |
โ |
|
(case my-num
(5 (display "Five!"))
(0 (display "Zero!"))
(else (display "Not an option"))) |
Variadic Functions |
โ |
|
(lambda (...) (apply + ...)) |
Case Sensitivity |
โ |
|
|
File Imports |
โ |
|
(load-mod my-module)
(load "examples/test.slo") |
Garbage Collection |
โ |
|
|
Strings |
โ |
" |
"hello world"
`hello wold` |
canUseQuestionMarksAsPartOfIdentifier |
โ |
|
(define yes? #t) |
Namespaces |
โ |
|
(ns-create 'hello-world)
(ns-define
'hello-world
'print
(lambda ()
(display "hello world!\n")))
(hello-world::print) |
hasBuiltInRegex |
โ |
|
(regex-match? `[0-9]+` "Hello 12345")
(regex-replace `Hello, (\w+)!importOnly |