-
-
Save amalloy/530385f2c09c63f893d6 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 expert-eval | |
[abs expert] | |
(case expert | |
"alexa" (map #(if (and (<= (% :abs1) (. Integer parseInt abs)) | |
(>= (% :abs2) (. Integer parseInt abs))) | |
(% :grade)) | |
(gen-alexa-regeln)) | |
"google" (map #(if (= (% :abs) abs) | |
(% :grade)) | |
(gen-google-regeln)) | |
"feedburner" (map #(if (and (<= (% :abs1) (. Integer parseInt abs)) | |
(>= (% :abs2) (. Integer parseInt abs))) | |
(% :grade)) | |
(gen-feedburner-regeln)) | |
"")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment