Vector - laforge49/aatree GitHub Wiki

API

aatree.AAVector is fully compatible with clojure.core/vector. But as it implements aatree.nodes/FlexVector, items can be added or dropped anywhere within the vector:

  • (aatree.core.addn aavector-vector ndx val) - Returns a vector with the additional value. (The count has been increased by 1.)
  • (aatree.core.dropn aavector-vector ndx) - Returns a vector without the value at the given index. (The count has been decreased by 1.)

The function (aatree.core.new-vector opts), depending on how opts is configured, returns either a Clojure Vector, a Basic Vector, a Lazy Vector or a Virtual Vector.

extends clojure.lang.APersistentVector

implements [clojure.lang.IObj, aatree.nodes.FlexVector, aatree.nodes.INoded]

source