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

Function problem_01

examples/99_problems.cpp:26–29  ·  view source on GitHub ↗

P01 (*) Find the last box of a list.

Source from the content-addressed store, hash-verified

24
25// P01 (*) Find the last box of a list.
26void problem_01()
27{
28 print_result(last(xs));
29}
30
31// P02 (*) Find the last but one box of a list.
32void problem_02()

Callers 1

mainFunction · 0.85

Calls 2

print_resultFunction · 0.85
lastFunction · 0.50

Tested by

no test coverage detected