Skip to content

Commit

Permalink
fix ast->code list? discrepency in cljs
Browse files Browse the repository at this point in the history
  • Loading branch information
selfsame committed Aug 18, 2017
1 parent 7579ad9 commit 396a2c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pdfn/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

(defn- ast->code [form]
(cond (vector? form) (seq (clojure.walk/walk ast->code identity (vec (remove #{::nf} form))))
(list? form) (first form)
(seq? form) (if (= 1 (count form)) (first form) form)
:else form))

(defn- datatype? [v] (or (sequential? v) (set? v) (map? v)))
Expand Down

0 comments on commit 396a2c5

Please sign in to comment.