Skip to content

Conversation

@DavisVaughan
Copy link
Member

@DavisVaughan DavisVaughan commented Oct 8, 2025

To support #2059, but I think these are the correct way to round out this function anyways.

Also now goes through an internal list_interleave(), which is a convenient form when you already have a list that also exposes an x_arg for improved error messaging.

Also fixes an issue where vec_interleave(1:2, NULL, 1:3) was reporting the wrong index in the error message due to compacting out the NULL too early. Since list_combine() itself can handle NULLs and elegantly drops them at the right time, we now just pass through to that with an empty integer() location index.

@DavisVaughan DavisVaughan merged commit 983ebab into main Oct 14, 2025
14 checks passed
@DavisVaughan DavisVaughan deleted the feature/interleave-improvements branch October 14, 2025 15:07
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