tcbrindle / flux

A C++20 library for sequence-orientated programming
https://tristanbrindle.com/flux/
Boost Software License 1.0
513 stars 30 forks source link

Rename count(val) overload to count_eq() #31

Closed tcbrindle closed 1 year ago

tcbrindle commented 1 year ago

Now

count(seq) is equivalent to count_if(seq, pred::true_)

count_eq(seq, val) is equivalent to count_if(seq, pred::eq(val))

codecov[bot] commented 1 year ago

Codecov Report

Base: 97.95% // Head: 97.95% // No change to project coverage :thumbsup:

Coverage data is based on head (4d95126) compared to base (0c3bded). Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #31 +/- ## ======================================= Coverage 97.95% 97.95% ======================================= Files 57 57 Lines 1811 1811 ======================================= Hits 1774 1774 Misses 37 37 ``` | [Impacted Files](https://codecov.io/gh/tcbrindle/flux/pull/31?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tristan+Brindle) | Coverage Δ | | |---|---|---| | [include/flux/core/inline\_sequence\_base.hpp](https://codecov.io/gh/tcbrindle/flux/pull/31?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tristan+Brindle#diff-aW5jbHVkZS9mbHV4L2NvcmUvaW5saW5lX3NlcXVlbmNlX2Jhc2UuaHBw) | `92.30% <ø> (ø)` | | | [include/flux/op/count.hpp](https://codecov.io/gh/tcbrindle/flux/pull/31?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tristan+Brindle#diff-aW5jbHVkZS9mbHV4L29wL2NvdW50LmhwcA==) | `100.00% <ø> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tristan+Brindle). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tristan+Brindle)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.