Skip to content

Add shift operations on BitSet #41

Closed
@linasm

Description

@linasm

Add bitwise shift (<< and >>) operations to BitSet collection.
Motivation:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions