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

Function problem_15

examples/99_problems.cpp:137–140  ·  view source on GitHub ↗

P15 (**) Replicate the elements of a list a given number of times.

Source from the content-addressed store, hash-verified

135
136// P15 (**) Replicate the elements of a list a given number of times.
137void problem_15()
138{
139 print_result(replicate_elems(3, xs));
140}
141
142// P16 (**) Drop every N'th element from a list.
143void problem_16()

Callers 1

mainFunction · 0.85

Calls 2

print_resultFunction · 0.85
replicate_elemsFunction · 0.50

Tested by

no test coverage detected