Skip to content
New issue

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

Support size one tuples #57

Open
ISibboI opened this issue Aug 29, 2019 · 2 comments
Open

Support size one tuples #57

ISibboI opened this issue Aug 29, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@ISibboI
Copy link
Owner

ISibboI commented Aug 29, 2019

Tuples are required to be created with the comma operator as of now. It should be possible to create size one tuples using parentheses as well.

@ISibboI ISibboI added the enhancement New feature or request label Aug 29, 2019
@nickisyourfan
Copy link

I'd love to look into this one as well -- In my project I am dynamically mapping values from a database to evaluate custom validations. Some of these might be vecs/arrays of length 1. It seems that tuples with length 1 convert to primitive types in this case?

@ISibboI
Copy link
Owner Author

ISibboI commented May 16, 2023

Good point, that is true. So far, tuples are created by the comma operator, which is n-ary for n at least 2. Maybe a simple built-in function could help? Something like tuple or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants