You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: << can be emulated with .map(_ + shiftBy) and >> with .collect { case b if b >= shiftBy => b - shiftBy }, but performance difference is two orders of magnitude.
I have some existing code for it, will be able to submit a PR soon.
The text was updated successfully, but these errors were encountered:
Add bitwise shift (
<<
and>>
) operations toBitSet
collection.Motivation:
std::bitset
: https://en.cppreference.com/w/cpp/utility/bitset/operator_ltltgtgtNote:
<<
can be emulated with.map(_ + shiftBy)
and>>
with.collect { case b if b >= shiftBy => b - shiftBy }
, but performance difference is two orders of magnitude.I have some existing code for it, will be able to submit a PR soon.
The text was updated successfully, but these errors were encountered: