Home | History | Annotate | Download | only in doxygen
      1 #include "rxcpp/rx.hpp"
      2 
      3 #include "rxcpp/rx-test.hpp"
      4 #include "catch.hpp"
      5 
      6 SCENARIO("distinct_until_changed sample"){
      7     printf("//! [distinct_until_changed sample]\n");
      8     auto values = rxcpp::observable<>::from(1, 2, 2, 3, 3, 3, 4, 5, 5).distinct_until_changed();
      9     values.
     10         subscribe(
     11             [](int v){printf("OnNext: %d\n", v);},
     12             [](){printf("OnCompleted\n");});
     13     printf("//! [distinct_until_changed sample]\n");
     14 }
     15 
     16