We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be useful to have functions ToTupleX to simplify the creation of Tuples.
It would be especially useful to convert the return of a function with multiple values into a single Tuple.
The text was updated successfully, but these errors were encountered:
Something like:
tuple := lo.T2("foobar", 42) tuple.A // "foobar" tuple.B // 42
func example() (string, int) { return "foobar", 42 } tuple := lo.T2(example()) tuple.A // "foobar" tuple.B // 42
?
Sorry, something went wrong.
Exactly.
I can provide a PR for that.
Successfully merging a pull request may close this issue.
It would be useful to have functions ToTupleX to simplify the creation of Tuples.
It would be especially useful to convert the return of a function with multiple values into a single Tuple.
The text was updated successfully, but these errors were encountered: