Some vector functions

Here are a couple of vector functions.

When you use “map” on a vector, you get a list back.

It acts like a list (because for lists “conj” adds at the front; for vectors it adds at the end).

Calling “vector” on it gives you a vector with a list inside it.

So call “vec” on the result to make it a vector.

“vector” can take elements directly.

“vec” must take a collection.

Same with “set”.

You’re welcome.