Created
May 29, 2016 10:13
-
-
Save athos/b30508b8e6c53691de6c0299780419d6 to your computer and use it in GitHub Desktop.
This file contains 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 include? [[x & xs :as xxs] [y & ys :as yys]] | |
(or (empty? xxs) | |
(and (not (empty? yys)) | |
(if (= x y) | |
(recur xs ys) | |
(recur xxs ys))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment