allow coerce-path and comp-paths to work with more sequence types

This commit is contained in:
Nathan Marz 2015-06-24 18:02:20 -04:00
parent c7e0fff2db
commit 784378af34

View file

@ -207,6 +207,18 @@
(coerce-path [this] (coerce-path [this]
(comp-paths* this)) (comp-paths* this))
#?@(:cljs [
cljs.core/IndexedSeq
(coerce-path [this]
(coerce-path (vec this)))
cljs.core/EmptyList
(coerce-path [this]
(coerce-path (vec this)))
cljs.core/List
(coerce-path [this]
(coerce-path (vec this)))
])
#?(:clj Object :cljs js/Object) #?(:clj Object :cljs js/Object)
(coerce-path [this] (coerce-path [this]
(cond (structure-path? this) (coerce-structure-path this) (cond (structure-path? this) (coerce-structure-path this)