Skip to content

Upscaling/Downscaling between the Bifurcan List and the Clojure Vector #31

@hoebat

Description

@hoebat

I've noticed that there's quite a lot of similarities between the two structures. Is there a way to have a hybrid structure that can upscale the simpler clojure vector if need be to an RRB Tree?

This will get rid of a problem that's always bothered me:

(conj (cons [...] 1) 2) => (2, 1, ...)  ;; which is a Linked List, not a vector

will then be:

(conj (cons [...] 1) 2) => [1 ... 2]  ;; which is an upscaled Bifurcan List

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