mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 11:56:54 +03:00
9 lines
133 B
Plaintext
9 lines
133 B
Plaintext
def slow_mul2(n):
|
|
switch n:
|
|
case 0:
|
|
return 0
|
|
case _:
|
|
return 2 + slow_mul2(n-1)
|
|
|
|
def main:
|
|
return slow_mul2(7) |