Try it here https://dzharvis.github.io/lesp/
Note: Due to some bug with web assembly, may not work with some versions of chrome
cargo run
cargo install cargo-web
cargo web start --features web-spa
- Open
http://[::1]:8000
in your browser
>> (reduce (list 1 2 3) 0 )
<< 6
>> (map (list 1 2 3) square)
<< [1, 4, 9]
>> (defn add (a b) ( a b))
<< "add"
>> (add 10 20)
<< 30
- Empty list works as nil
- Everything is immutable
- Numbers are only positive
- No string support