It seems the name "append" has not yet been taken. How about we do this 
with Clojure:

1. add a new function "append", which splices multiple ordered collection 
together and always returns the result in the concrete type of its first 
argument. So:
(append [1] '(2 3)) => [1 2 3]
(append '(1) [2 3])) => (1 2 3)

It is different from "concat" because it keeps the original concrete type.
This will solve the "into" problem. and "into" still has its value because 
it works on non ordered collections too.

2. add another function "slice", which will return a segment of an ordered 
collection in its original concrete type. Something like this:
(slice [1 2 3] 1 3) => [2 3]
it may also take an optional "step" argument (like take-nth).

If a post like this will get no attention from the Clojure gods, where 
should I submit the idea? Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to