#48
Intro to some
 

Difficulty:N/A
Topics:easy


The some function takes a predicate function and a collection. It returns the first logical true value of (predicate x) where x is an item in the collection.
test not run
(= __ (some #{2 7 6} [5 6 7 8]))
test not run
(= __ (some #(when (even? %) %) [5 6 7 8]))


Code which fills in the blank: