Is there a way to create a comprehensive set of conditional combinations

how about

Iterators.filter(x -> (x[2] - x[1])>0 || sum(x) == value, combinations(1:6,2)) |> collect

1 Like