comb

Create a Comb struct from a range or of a set of bounds.

comb
(
T
)
(
,
uint r
)

Examples

auto c1 = comb([1,2,3], 2);  // Any two elements from [1,2,3].
auto c2 = comb(5, 3);  // Any three elements from [0,1,2,3,4].

Meta