Created
December 31, 2011 08:49
-
-
Save jackdempsey/1543423 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn divisible-by-3-or-5? [num] (or (== (mod num 3) 0)(== (mod num 5) 0))) | |
#'user/divisible-by-3-or-5? | |
user=> (take-while divisible-by-3-or-5? [7 9 13 5 8 3 1]) | |
() | |
user=> (take-while odd? [7 9 13 5 8 3 1]) | |
(7 9 13 5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment