functional programming - Add two collections in clojure -


How to efficiently add two collections to the closure? I tried the following: I want to know that there is no other method efficient than this.

(# command% 1% 2) Collection 1 archive 2)

Depending on what you want to achieve, if you want to achieve that, there is a collection of the specified type, which contains all the elements of the compilation given, then it is appropriate: (in coll1 coll2) collection of type (type coll1) elements with coll1 and coll2 .

On the other hand, if you want to resume many collections (i.e. create sequence of elements in the collection), then it is more efficient to use: Users & gt; (Context [1 2 3] (list 4 5 6)) (1 2 3 4 5 6)

Comments