P10 (*) Run-length encoding of a list.
| 78 | |
| 79 | // P10 (*) Run-length encoding of a list. |
| 80 | void problem_10() |
| 81 | { |
| 82 | auto group_to_pair = [](const Ints& group) -> size_t_int_pair { |
| 83 | return std::make_pair(size_of_cont(group), group.front()); |
| 84 | }; |
| 85 | print_result(transform(group_to_pair, group(xs))); |
| 86 | } |
| 87 | |
| 88 | // P11 (*) Modified run-length encoding. |
| 89 | void problem_11() |
no test coverage detected