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
- Can procs return multiple values? Epigene
- Re: Can procs return multiple values? jxy
- Re: Can procs return multiple values? ratfactor