iterator nameVal(t: seq[(string, int)]): (string, int) = for x in t: yield x var myValue = @[("hello", 100), ("World", 300)] doThing(myValue) # For instance