erg 0.6.53

The Erg programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
t0 _: Tuple([]) = None
t1 _: Tuple([Int]) = None

_ = t0(()) # OK
_ = t0((1,)) # OK
_ = t1(()) # ERR
_ = t1((1,)) # OK
_ = t1((1, 2)) # OK

_ as Iterator(Int) = iter((1, 2)) # OK
_ as Iterator((Int, Int)) = iter([(1, 2)]) # OK
_ as Iterator((Int, Int)) = iter((1, 2)) # ERR