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

Function problem_16

examples/99_problems.cpp:143–148  ·  view source on GitHub ↗

P16 (**) Drop every N'th element from a list.

Source from the content-addressed store, hash-verified

141
142// P16 (**) Drop every N'th element from a list.
143void problem_16()
144{
145 std::size_t n = 3;
146 print_result(
147 drop_idxs(numbers_step(std::size_t(0), size_of_cont(xs), n), xs));
148}
149
150// P17 (*) Split a list into two parts; the length of the first part is given.
151void problem_17()

Callers 1

mainFunction · 0.85

Calls 4

print_resultFunction · 0.85
drop_idxsFunction · 0.50
numbers_stepFunction · 0.50
size_of_contFunction · 0.50

Tested by

no test coverage detected