On 24 May 2011 08:07, Sunil S Nandihalli <[email protected]> wrote:
> Hello everybody,
> is there a function to find the first element after an element in the
> sorted-set?
> (first-element-after 3 (sorted-set 1 2 3 4 5 6))
> should return 4?

How about this?:

(first (drop-while (partial >= 3) (sorted-set 1 2 3 4 5 6)))

-- 
Michael Wood <[email protected]>

-- 
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

Reply via email to