`defn` errors if the body has multiple forms
vemv opened this issue · 0 comments
vemv commented
The following fails unless I remove the 2
:
(speced/defn ident->class
;; "Converts an 'ident' (as per clojure.core) to a html class."
[^ident? i]
(-> i symbol str (string/replace #"[\.|/]" "-"))
2)
Workaround: wrap in let
, do
, etc