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

Function problem_14

examples/99_problems.cpp:131–134  ·  view source on GitHub ↗

P14 (*) Duplicate the elements of a list.

Source from the content-addressed store, hash-verified

129
130// P14 (*) Duplicate the elements of a list.
131void problem_14()
132{
133 print_result(replicate_elems(2, xs));
134}
135
136// P15 (**) Replicate the elements of a list a given number of times.
137void problem_15()

Callers 1

mainFunction · 0.85

Calls 2

print_resultFunction · 0.85
replicate_elemsFunction · 0.50

Tested by

no test coverage detected