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 #184

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

isaacy2012
Copy link
Contributor

Addresses, #172: 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)).

This commit adds the *_map version for the zip adaptor.

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)).

 This commit adds the *_map version for the zip adaptor
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.

None yet

1 participant