summary refs log blame commit diff stats
path: root/tests/tuples/tanontuples.nim
blob: 49803e5ac613296cb6710b8f803cc26ea7ff1c2b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
           
                       











                                    
discard """
  output: '''61, 125'''
"""

proc `^` (a, b: int): int =
  result = 1
  for i in 1..b: result = result * a

var m = (0, 5)
var n = (56, 3)

m = (n[0] + m[1], m[1] ^ n[1])

echo m[0], ", ", m[1]