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

Function problem_19

examples/99_problems.cpp:163–166  ·  view source on GitHub ↗

P19 (**) Rotate a list N places to the left.

Source from the content-addressed store, hash-verified

161
162// P19 (**) Rotate a list N places to the left.
163void problem_19()
164{
165 print_result(apply_function_n_times(rotate_left<Ints>, 3, xs));
166}
167
168// P20 (*) Remove the K'th element from a list.
169void problem_20()

Callers 1

mainFunction · 0.85

Calls 2

print_resultFunction · 0.85
apply_function_n_timesFunction · 0.50

Tested by

no test coverage detected