Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add adjacent_filter adaptor #119

Merged
merged 2 commits into from
Aug 14, 2023
Merged

Add adjacent_filter adaptor #119

merged 2 commits into from
Aug 14, 2023

Commits on Aug 11, 2023

  1. Add adjacent_filter adaptor

    `adjacent_filter()` takes a binary predicate and has the same semantics as Range-V3's views::adjacent_filter: elements are tested pair-wise, and if the predicate returns `false` then the second element of the pair is discarded.
    
    This also adds `dedup()` as a shortcut for `adjacent_filter(std::not_equal_to{})`, because that's what people are probably going to want most of the time.
    
    Fixes #116
    tcbrindle committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    472a1c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cf4ff91 View commit details
    Browse the repository at this point in the history