Skip to content

Commit

Permalink
Robustify parse fn
Browse files Browse the repository at this point in the history
  • Loading branch information
verberktstan authored Jan 31, 2024
1 parent 6253704 commit 1c9018b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swark/eav.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

;; Storing data as Entity / Attribute / Value rows

(defn- parse [f input] (f input))
(defn- parse [f input] (cond-> input (ifn? f) f))

(defn ->rows
"Returns a sequence of vectors with [entity-attribute entity-value attribute value]
Expand Down

0 comments on commit 1c9018b

Please sign in to comment.