| 103 | } |
| 104 | |
| 105 | std::vector<function_help> get_broken_function_helps( |
| 106 | const std::vector<function_help>& helps) |
| 107 | { |
| 108 | auto help_is_ok = [](const function_help& help) { |
| 109 | return !help.name.empty() && !help.signature.empty() && !help.declaration.empty() && !help.documentation.empty(); |
| 110 | }; |
| 111 | return fplus::drop_if(help_is_ok, helps); |
| 112 | } |
| 113 | |
| 114 | std::string functions_to_elm_code(const std::vector<function_help> functions) |
| 115 | { |