loom
21 строка · 422.0 Байт
1def int :
2begin = 0,
3end = 0,
4counter = 0
5
6def auto :
7__init__ = fn [self] (int : b, int : e) -> auto
8{
9def self : s
10
11s.begin = b
12s.end = e
13s.counter = b - 1
14
15return s
16},
17__iterator__ = fn (self : s) -> auto
18{
19s.counter += 1
20return s.counter
21}
22