t7534.nim 112 B

12345678
  1. proc f(x: int): int =
  2. result = case x
  3. of 1: 2
  4. elif x == 2: 3
  5. else: 1
  6. doAssert 2 == f(f(f(f(1))))