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

Function problem_17

examples/99_problems.cpp:151–154  ·  view source on GitHub ↗

P17 (*) Split a list into two parts; the length of the first part is given.

Source from the content-addressed store, hash-verified

149
150// P17 (*) Split a list into two parts; the length of the first part is given.
151void problem_17()
152{
153 print_result(split_at_idx(2, xs));
154}
155
156// P18 (**) Extract a slice from a list.
157void problem_18()

Callers 1

mainFunction · 0.85

Calls 2

print_resultFunction · 0.85
split_at_idxFunction · 0.50

Tested by

no test coverage detected