Specifically, your example would look like this in Nim using tuples:
    
    
    proc methodThatReturnsTwoValues(): (int, string) =
      return (1, "abc")
    
    let (v1, v2) = methodThatReturnsTwoValues()
    
    echo "v1=", v1, " v2=", v2
    

Reply via email to