Last active
January 22, 2017 14:24
-
-
Save deque-blog/2cf72b32d2c38a3a5da99261a7595c41 to your computer and use it in GitHub Desktop.
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 characters
(defn rator [e] (first e)) | |
(defn rands [e] (rest e)) | |
(defn cst? [n] (number? n)) | |
(defn sym? [v] (string? v)) | |
(defn op? [e] (vector? e)) | |
(defn add? [e] (and (op? e) (= (rator e) :add))) | |
(defn mul? [e] (and (op? e) (= (rator e) :mul))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment