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). __anone924c2200102(int v)9 skip_while([](int v){ 10 return v <= 4; 11 }); 12 values. 13 subscribe( __anone924c2200202(int v)14 [](int v){printf("OnNext: %d\n", v);}, __anone924c2200302()15 [](){printf("OnCompleted\n");}); 16 printf("//! [skip_while sample]\n"); 17 } 18