flux icon indicating copy to clipboard operation
flux copied to clipboard

Add zip_map adaptor

Open isaacy2012 opened this issue 1 year ago • 0 comments
trafficstars

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.

isaacy2012 avatar Apr 13 '24 14:04 isaacy2012