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

Function problem_08

examples/99_problems.cpp:68–71  ·  view source on GitHub ↗

P08 (**) Eliminate consecutive duplicates of list elements.

Source from the content-addressed store, hash-verified

66
67// P08 (**) Eliminate consecutive duplicates of list elements.
68void problem_08()
69{
70 print_result(unique(xs));
71}
72
73// P09 (**) Pack consecutive duplicates of list elements into sublists.
74void problem_09()

Callers 1

mainFunction · 0.85

Calls 2

print_resultFunction · 0.85
uniqueFunction · 0.50

Tested by

no test coverage detected