Cartesian Products
Use * on lists to generate all combinations.
The `*` operator on two lists produces their cartesian product — every pairing of an element from the left with an element from the right.
Loading WASM...
This is a powerful way to brute-force search over all pairs. Combine it with `find` or `where` to solve problems concisely.
Loading WASM...
You can also use `*` with an integer to repeat a list.
Loading WASM...