Skip to content
Snippets Groups Projects
Commit af004dea authored by Cam Saül's avatar Cam Saül
Browse files

Fix typo :wrench:

parent 41747517
Branches
Tags
No related merge requests found
......@@ -37,16 +37,16 @@
(apply str body)
" }"))
(defn- arthitmetic-operator
(defn- arithmetic-operator
"Interpose artihmetic OPERATOR between ARGS, and wrap the entire expression in parens."
^String [operator & args]
(parens (s/join (str " " (name operator) " ")
(map ->js args))))
(def ^{:arglists '([& args])} ^String + "Interpose `+` between ARGS, and wrap the entire expression in parens." (partial arthitmetic-operator :+))
(def ^{:arglists '([& args])} ^String - "Interpose `-` between ARGS, and wrap the entire expression in parens." (partial arthitmetic-operator :-))
(def ^{:arglists '([& args])} ^String * "Interpose `*` between ARGS, and wrap the entire expression in parens." (partial arthitmetic-operator :*))
(def ^{:arglists '([& args])} ^String / "Interpose `/` between ARGS, and wrap the entire expression in parens." (partial arthitmetic-operator :/))
(def ^{:arglists '([& args])} ^String + "Interpose `+` between ARGS, and wrap the entire expression in parens." (partial arithmetic-operator :+))
(def ^{:arglists '([& args])} ^String - "Interpose `-` between ARGS, and wrap the entire expression in parens." (partial arithmetic-operator :-))
(def ^{:arglists '([& args])} ^String * "Interpose `*` between ARGS, and wrap the entire expression in parens." (partial arithmetic-operator :*))
(def ^{:arglists '([& args])} ^String / "Interpose `/` between ARGS, and wrap the entire expression in parens." (partial arithmetic-operator :/))
(defn fn-call
"Generate a JavaScript function call.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment