Welcome to the Rex repo.
To use this project, you can use Jitpack to get the source and include it in your preferred build method.
Rex contains all the features you love from Clojure. Except for multithreading. However, there are some differences.
Use var
or val
to specify (mutable) variables and (immutable) values.
Use set
to change the value of a variable.
(val x nil)
(var map+ (fn [coll] (map inc coll)))
(if (nil? x)
(set map+ (fn [coll] (map dec coll))))
(map+ [1 2 3])
use
clears all prior variable or value definitions, except ones you specify.
(val x 1)
(use [] (+ x 2)) # unknown variable error
(use [x] (+ x 2)) # returns 3