The sequence abstraction is documented here:

http://clojure.org/sequences

Clearly map is documented as working on sequences.

A sequence is not a concrete type as explained by others on
this thread.

If you really need some specific behavior from a concrete type then
do not rely on sequences. Use the concrete type directly in all your code.

Choose the right tool to do your job. Clojure offers so many options
that this should not be difficult.

Luc P.


> On Sat, Feb 8, 2014 at 12:06 AM, Sean Corfield <s...@corfield.org> wrote:
> 
> > But you're misunderstanding what map does: it converts its collection
> > arguments to _sequences_ and then it processes those sequences. Map
> > doesn't operate on sets, or vectors, or maps, only on sequences.
> >
> 
> Your assertion that I "am misunderstanding something" is wrong.
> 
> One cannot convert amorphic set into linear sequence without assuming
> certain order. And as with every assumption, it always comes with some less
> or more pragmatic but arbitrary decision which might change over time and
> ruin peoples programs.
> 
> I would expect Clojure to throw "IllegalArgumentException Don't know how to
> create ISeq from: clojure.lang.PersistentHashSet" or document it well in
> map somewhere.
> 
> 
> "Perfection is the enemy of the good."
> >
> 
> Now judging by your sig, it all does not surprise me LOL
> 
> -- 
> 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
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
--
Softaddicts<lprefonta...@softaddicts.ca> sent by ibisMail from my ipad!

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to