Skip to content

Weird level-deletion in intersectionArrayBy #420

@sjakobi

Description

@sjakobi

case len of
0 -> pure Empty
1 -> A.read mary 0
_ -> bitmapIndexedOrFull bFinal <$> (A.unsafeFreeze =<< A.shrink mary len)

I'm referring to line 1864 where, instead of returning a BitmapIndexed node, its only element is returned.

@oberblastmeister Could you clarify the reasoning behind this code?

I'm wondering whether this might mess with the shift/subkey-logic, effectively misplacing some elements, so they can't be found by lookups, deletions etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions