Le mardi 12 novembre 2013, James Reeves a écrit : > On 12 November 2013 16:26, Phillip Lord > <[email protected]<javascript:_e({}, 'cvml', > '[email protected]');> > > wrote: > >> While we are talking, does anyone know why (contains? [:a :b :c] :b) >> returns false? >> > > This would be better placed in its own thread I think, but it's because > the contains? function checks for the presence of keys, not values. In a > vector, the keys are the indexes: (contains? [:a :b :c] 1) => true. >
Shhh, you're killing the purpose of the question to maintain high volume on the mailing list by unveiling the result too early ! As far as I'm concerned, I support Philip request. Please fix the behavior of the contains? function. > - James > > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to > [email protected]<javascript:_e({}, 'cvml', > '[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] <javascript:_e({}, 'cvml', > 'clojure%[email protected]');> > 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 [email protected] <javascript:_e({}, 'cvml', > 'clojure%[email protected]');>. > 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 [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 --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
