| 56 | // ![simple_custom_map] |
| 57 | |
| 58 | int main() // NOLINT(bugprone-exception-escape) |
| 59 | { |
| 60 | // ![readme] |
| 61 | rpp::source::from_callable(&::getchar) |
| 62 | | rpp::operators::repeat() |
| 63 | | rpp::operators::take_while([](char v) { return v != '0'; }) |
| 64 | | rpp::operators::filter(std::not_fn(&::isdigit)) |
| 65 | | rpp::operators::map(&::toupper) |
| 66 | | rpp::operators::subscribe([](char v) { std::cout << v; }); |
| 67 | // ![readme] |
| 68 | |
| 69 | rpp::source::just(1) | simple_map([](int v) { return std::to_string(v); }) | rpp::ops::subscribe(); |
| 70 | |
| 71 | return 0; |
| 72 | } |
nothing calls this directly
no test coverage detected