mkhan45 / RustScript2

RustScript is a functional scripting language with as much relation to Rust as Javascript has to Java.
https://mkhan45.github.io/RustScript2/
Other
36 stars 2 forks source link

List comprehensions and range expressions #18

Closed mkhan45 closed 2 years ago

mkhan45 commented 2 years ago

Can be implemented as syntax sugar with builtin range, map, and filter

mkhan45 commented 2 years ago

e.g. https://github.com/mkhan45/RustScript/blob/891e5e55df50cbe7785f911d7fd9805855be5b4e/Interpreter.java#L1107

mkhan45 commented 2 years ago

21