Skip to content

Should we add unsafeSnoc? #11

@treeowl

Description

@treeowl

unordered-containers has a totally unsafe insertion function used to implement fromList and similar by mutating "immutable" maps with the help of unsafeThaw and unsafeFreeze. We could do something similar here, and use it to implement fromList, filter, and partition. This would avoid rebuilding a tree node just because one of its children has changed. Is it worth the trouble? I don't know yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions