Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Vector clean up #1

Merged
merged 1 commit into from
Apr 15, 2021
Merged

Vector clean up #1

merged 1 commit into from
Apr 15, 2021

Conversation

wemeetagain
Copy link
Member

  • Rename Vector to PersistentVector
  • Rename append to push
  • Rename toTS to toArray
    • toArray is significantly faster than values, so its used in [Symbol.iterator]()
  • Refactor empty to be a singleton rather than function
  • Refactor INode type
    • edit reference for TransientVector (see link below, will come in a separate PR)
  • Refactor code to use new INode type

Extra Context:
Our implementation almost exactly follows https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/PersistentVector.java but with a more "javascripty" interface (get/set vs lisp-y interface)

@wemeetagain wemeetagain merged commit 7213f24 into master Apr 15, 2021
@wemeetagain wemeetagain deleted the cayman/cleanup branch April 15, 2021 16:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants