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 zip_map adaptor #172

Closed
tcbrindle opened this issue Feb 14, 2024 · 1 comment
Closed

Add zip_map adaptor #172

tcbrindle opened this issue Feb 14, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tcbrindle
Copy link
Owner

The element type of flux::cartesian_product, cartesian_power and adjacent is a tuple of the element type(s) of the underlying sequences. These three adaptors also provide *_map versions, which take an n-ary function and call it directly with the underlying elements. This is to avoid forming a tuple and then immediately destructuring it, as would happen in a subsequent call to map(unpack(func)).

The odd one out is zip, which doesn't provide a _map form. We should fix that.

@tcbrindle tcbrindle added the enhancement New feature or request label Feb 14, 2024
@tcbrindle
Copy link
Owner Author

Fixed by #184. Thanks @isaacy2012

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

1 participant