Thanks. Didn't think it would exist in clojure.core.

On Oct 4, 4:58 pm, Ulises <[email protected]> wrote:
> your subject contains the answer :)
>
> sandbox> (def s1 (seq ["s1" (seq ["s2" "s3"]) "s4" "s5" (seq ["s6"
> (seq ["s7" "s8"]) "s9"])]))
> #'sandbox/s1
> sandbox> s1
> ("s1" ("s2" "s3") "s4" "s5" ("s6" ("s7" "s8") "s9"))
> sandbox> (flatten s1)
> ("s1" "s2" "s3" "s4" "s5" "s6" "s7" "s8" "s9")
> sandbox> (doc flatten)
> -------------------------
> clojure.core/flatten
> ([x])
>   Takes any nested combination of sequential things (lists, vectors,
>   etc.) and returns their contents as a single, flat sequence.
>   (flatten nil) returns nil.
> nil
> sandbox>

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

Reply via email to