MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / problem_26

Function problem_26

examples/99_problems.cpp:205–208  ·  view source on GitHub ↗

P26 (**) Generate the combinations of K distinct objects chosen from the N elements of a list

Source from the content-addressed store, hash-verified

203
204// P26 (**) Generate the combinations of K distinct objects chosen from the N elements of a list
205void problem_26()
206{
207 print_result(combinations(3, xs));
208}
209
210// P27 (**) Group the elements of a set into disjoint subsets.
211void problem_27()

Callers 1

mainFunction · 0.85

Calls 2

print_resultFunction · 0.85
combinationsFunction · 0.50

Tested by

no test coverage detected