Skip to content

Instantly share code, notes, and snippets.

@athos
Created May 29, 2016 10:13
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 athos/b30508b8e6c53691de6c0299780419d6 to your computer and use it in GitHub Desktop.
Save athos/b30508b8e6c53691de6c0299780419d6 to your computer and use it in GitHub Desktop.
(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