Last active
August 29, 2015 14:12
-
-
Save devrimbaris/a140e416ff3efb23b5fe to your computer and use it in GitHub Desktop.
Revisions
-
devrimbaris revised this gist
Dec 30, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ (defn run-rule-two-arguments "Assumes rule is defined in string like "a > b." [rule-string & args] (let [parsed (stri/split rule-string #" ") -
devrimbaris revised this gist
Dec 30, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ (defn run-rule-one-argument "Assumes rule is defined in string like "zero? b." [rule-string & args] (let [parsed (stri/split rule-string #" ") rulefn (resolve (symbol (first parsed)))] -
devrimbaris created this gist
Dec 30, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ (defn run-rule-one-argument "Assumes rule is defined in string like \"zero? \"b." [rule-string & args] (let [parsed (stri/split rule-string #" ") rulefn (resolve (symbol (first parsed)))] (apply rulefn args))) (run-rule-one-argument "zero?" 7) (run-rule-one-argument "-" 9) (defn run-rule-two-arguments "Assumes rule is defined in string like \"a > \"b." [rule-string & args] (let [parsed (stri/split rule-string #" ") rulefn (resolve (symbol (second parsed)))] (apply rulefn args))) (run-rule-two-arguments "a > b" 5 7) (run-rule-two-arguments "a > b" 75 7)