mori
mori copied to clipboard
Consider to add `vec` function
Task: add single element to the front of the vector.
Current solutions:
vector.apply(null, intoArray(cons("a", vector("b", "c"))));
vector(...intoArray(cons("a", vector("b", "c"))));
are overcomplicated.
Expected solution:
vec(cons("a", vector("b", "c")));
I was surprised to not find vec function from Clojure core.
I think .vec is available, just not documented? I certainly see this: https://github.com/swannodette/mori/blob/master/src/mori.cljs#L8