regulus 0.0.14

A simple, interpreted language with very simple syntax and zero dependencies
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Returns a list of all integers from `start` to `end`, including `start` but not `end`.
# Rust equivalent: `start..end`
def(range, start, end, _(
    if(>(start, end), error("Range", "cannot construct range with start > end")),
    =(i, start),
    =(l, list()),
    while(<(i, end), _(
        =(l, append(l, i)),
        =(i, +(i, 1)),
    )),
    l
)),

=(.., range)