On Friday, October 24, 2014 11:41:47 AM UTC-7, Roelof Wobben wrote:
>
> Hello, 
>
> Im at exercise 21 : 
> http://iloveponies.github.io/120-hour-epic-sax-marathon/structured-data.html#exercise-20
>
> Where I have to find out if a sequence has duplicates. 
>
> But I have no clue how to handle this .
>

I'm just a beginner too so I'm sure there are better ways but given the 
text right before the exercise, I think they're looking for something like:









(defn contains-duplicates? [s]
  (not= 
    (count s)
    (count (set s))))

Wil

-- 
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/d/optout.

Reply via email to