tech.v3.datatype.list

empty-list

(empty-list datatype)

Make an empty list of a given datatype.

make-list

(make-list initial-container ptr)(make-list datatype)

Make a new primitive list out of a container and a ptr that indicates the current write position.

wrap-container

(wrap-container container)

In-place wrap an existing container. Write ptr points to the end of the container so the next add* method will cause an allocation.