How to Generate All the Combinations from Several Collections
▻https://www.fluentcpp.com/2022/03/18/how-to-generate-all-the-combinations-from-several-collections
Generating all the possible combinations from a set of collections and applying a function to each combination is a need that comes up often in programming. This is called a “Cartesian product”. For example, this kind of operation is necessary in the cartesian_product range adaptor, in the cartesian_product pipe, and in the killer feature of […]