On 24 May 2011 08:07, Sunil S Nandihalli <sunil.nandiha...@gmail.com> 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 <esiot...@gmail.com>

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

Reply via email to