Re: length of a list

2008-11-15 Thread Rajarshi
On Nov 15, 7:58 am, "Craig Andera" <[EMAIL PROTECTED]> wrote: > Unless I'm missing something: > > (count '("CCC" "COC" "C(=O)C")) > => 3 > > Or better yet: > > (count ["CCC" "COC" "C(=O)C"]) > => 3 Thank you --~--~-~--~~~---~--~~ You received this message because

length of a list

2008-11-15 Thread Rajarshi
. Currently I'm using (def smiles '("CCC", "COC", "C(=O)C")) (reduce (fn [x y] (+ x y)) (for [x smiles] 1)) Is there a simpler way to do this? Thanks, Rajarshi --~--~-~--~~~---~--~~ You received this message because you are su