Created
November 20, 2013 20:19
-
-
Save mwmitchell/7570284 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
(def feature-preds | |
{:VTM (fn [request] false)}) | |
(defn filter-features [request features] | |
(filter #((get feature-preds % (constantly true)) request) features)) | |
(let [fake-request {:server-name "www.roomkey.com"}] | |
(filter-features fake-request #{:VTM})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment