Created
May 29, 2016 10:41
-
-
Save athos/6006c14298181fe4316c0e57591122d4 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? [xs ys] | |
(let [ys' (frequencies ys)] | |
(reduce (fn [_ [e n]] | |
(or (some->> (ys' e) (<= n)) | |
(reduced false))) | |
true | |
(frequencies xs)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment