Welcome! Please see the About page for a little more info on how this works.

+1 vote
in Transducers by
closed by

In light of Metosin's recent comments on the costs of laziness, what do you think about adding a transducer arity to vec? In essence it becomes an eager version sequence. Semantically I think (vec (map inc) coll) integrates fairly well with the idea of vec. That tiny bit of terseness over (into [] (map inc) coll) I think is worth having personally.


We considered this when we last worked on `into` but decided to leave for future consideration, which you can find in an existing ask clojure question - feel free to upvote there.