1 #include "rxcpp/rx.hpp" 2 3 #include "rxcpp/rx-test.hpp" 4 #include "catch.hpp" 5 6 SCENARIO("skip_while sample"){ 7 printf("//! [skip_while sample]\n"); 8 auto values = rxcpp::observable<>::range(1, 8). __anon083e85620102(int v)9 skip_while([](int v){ 10 return v <= 4; 11 }); 12 values. 13 subscribe( __anon083e85620202(int v)14 [](int v){printf("OnNext: %d\n", v);}, __anon083e85620302()15 [](){printf("OnCompleted\n");}); 16 printf("//! [skip_while sample]\n"); 17 } 18