mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-24 13:34:52 +00:00
13 lines
257 B
Python
13 lines
257 B
Python
.Nat: ClassType
|
|
.Nat.
|
|
'''
|
|
Execute `proc!` `self` times.
|
|
'''
|
|
'''erg
|
|
10.times! do!:
|
|
print! "hello"
|
|
|
|
print_hello!() = print! "hello"
|
|
10.times! print_hello!
|
|
'''
|
|
times!: (self: .Nat, proc!: () => NoneType) => NoneType
|