On Jun 24, 2009, at 6:44 PM, arasoft wrote:
This also works: (into [-1] [0 1 2 3 4]) but I am more than uncertain whether it is "proper".
Generally, the need to insert at the beginning of a vector should trigger some close scrutiny as to whether vector is the right data type to use in this case.
The choice of which operations Clojure provides for each data type was driven by a guiding principle of providing only those operations that are efficient and appropriate for that type.
Of the Clojure collections, "list" is the one best suited for insertion at the front.
--Steve
smime.p7s
Description: S/MIME cryptographic signature