Skip to content

Add a method to strip duplicate values from already-sorted sequences. #258

Open
@CTMacUser

Description

@CTMacUser

I'm writing a Set-like type. Each value can be in the set only once. I'm adding an initializer that will read all elements at once to perfectly build the internal binary tree in advance. Instead of worrying about removing duplicates while building the tree, it'd be better to remove all duplicates, ensuring a possibly non-decreasing sequence is a strictly-increasing one.

See pull request #257 for a sample implementation.

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