Thanks Michael, This links are helpful. As far as I can see nothing like contains-val? or seq-contains? has being added though :( I'm trying to use cljs for performance sensitive code and high order functions like `some` don't really do it, while indexOf on strings in JS are well optimised by engines.
Maybe something else can be considered like `includes?` to do that instead ? Also Rich says no better name was suggest for includes?, I think `has?` would have being a lot better name. Don't know if it makes sense to reply to that post at this point. Regards -- Irakli Gozalishvili Web: http://www.jeditoolkit.com/ On Thursday, 2013-02-28 at 14:59 , Michael Gardner wrote: > This is a sore spot that has been discussed many times on this list[1]. The > short version is that many people agree that the name "contains?" is > misleading to newcomers, but according to Rich it's not changing any time > soon[2]. What you want for linear searches is 'some (as mentioned in the doc > for 'contains?). > > Also, why are you quoting your vectors (e.g. '[:a :b :c] instead of just [:a > :b :c])? > > [1] Most recently, > https://groups.google.com/d/msg/clojure/wNFdG11zMMo/OC9ezSn9nRAJ > [2] https://groups.google.com/d/msg/clojure/bSrSb61u-_8/3-wjAkJ4VJgJ > > -- > -- > 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 > (mailto: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 > (mailto: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 > (mailto:clojure+unsubscr...@googlegroups.com). > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- 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.