Looks nearly the same:
    
    
    proc procThatReturnsTwoValues: (int, string) =
      return (1, "abc")
    
    let (v1, v2) = procThatReturnsTwoValues()
    echo v1 #=> 1
    echo v2 #=> abc
    

But you can also use the `result` variable instead of using `return`. Or you 
can even just write `proc procThatReturnsTwoValues: auto = (1, "abc")`

And you can give the tuple values names with `proc procThatReturnsTwoValues: 
tuple[a: int, b: string] =`

Reply via email to