Skip to content

Instantly share code, notes, and snippets.

Created September 5, 2010 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/565974 to your computer and use it in GitHub Desktop.
Save anonymous/565974 to your computer and use it in GitHub Desktop.
------------------------- clojure.core/some ([pred coll]) Returns the first logical true value of (pred x) for any x in coll, else nil. One common idiom is to use a set as pred, for example this will return :fred if :fred is in the sequence, otherwise nil: (some #{:fred} coll) nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment