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

Add Vec::to_vals #1087

Merged
merged 1 commit into from
Sep 15, 2023
Merged

Add Vec::to_vals #1087

merged 1 commit into from
Sep 15, 2023

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Sep 15, 2023

What

Add Vec::to_vals function that converts a Vec to a Vec.

Why

It's reasonably common, at least in tests and internally, that we need to construct Vec's of Val's. There are different ways to do this by constructing a Vec of Val::from calls, to using tuples with always convert to Vec. We should have a function to help us do it.

I hope to use the function in #1023.

@leighmcculloch leighmcculloch marked this pull request as ready for review September 15, 2023 18:22
@leighmcculloch leighmcculloch added this pull request to the merge queue Sep 15, 2023
Merged via the queue into main with commit 94f29fc Sep 15, 2023
14 checks passed
@leighmcculloch leighmcculloch deleted the val-vec branch September 15, 2023 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants