If you want something not lazy, but which avoids some overhead, you can do:
(vec (make-array Object 1024))
Note. assoc does not change the vector, it returns a new vector with the changed value. Vectors are immutable. Your code will never work as published.
Brian carper
source share