Created
August 1, 2014 09:44
-
-
Save t-ob/b38500a8ca7e1be2b68a 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 take-while-plus-one [f [x & rest :as coll]] | |
(when (seq coll) | |
(if (f x) | |
(cons x (take-while-plus-one f rest)) | |
(list x)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment