erg 0.6.53

The Erg programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
for! enumerate(0..3), ((i, j),) =>
    assert i == j
for! zip(0..3, 0..3), ((i, j),) =>
    assert i == j
for! filter(x -> x > 1, 0..3), i =>
    assert i > 1
for! map(x -> "\{x}", [1, 2, 3]), s =>
    assert str(s) == s

for! enumerate([["aaa"], ["aaaa"]]), ((_, a),) =>
    print! a.filter(s -> "a" in s)

os = pyimport "os"
for! os.walk!("assets"), ((path, dirs, files),) =>
    print! files.filter(i -> i != "a").to_list()