mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
8 lines
112 B
Nim
8 lines
112 B
Nim
proc f(x: int): int =
|
|
result = case x
|
|
of 1: 2
|
|
elif x == 2: 3
|
|
else: 1
|
|
|
|
doAssert 2 == f(f(f(f(1))))
|