allow coerce-path and comp-paths to work with more sequence types
This commit is contained in:
parent
c7e0fff2db
commit
784378af34
1 changed files with 12 additions and 0 deletions
|
|
@ -206,6 +206,18 @@
|
||||||
#?(:clj java.util.List :cljs cljs.core/PersistentVector)
|
#?(:clj java.util.List :cljs cljs.core/PersistentVector)
|
||||||
(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]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue