Context
(doc count) ------------------------- clojure.core/count ([coll]) Returns the number of items in the collection. (count nil) returns 0. Also works on strings, arrays, and Java Collections and Maps
Question
Is constant time guaranteed on a vector?
If not, do you still need to get the size of the vector in constant time?
More context
I really want to get a list item from a vector, which I can do in O (1) with nth if I know the size of the vector.
EDIT:
I forgot to mention this. I need this to work with the transition vector.
source share