From 784378af347dc6d56800208ac2cd9aebff776585 Mon Sep 17 00:00:00 2001 From: Nathan Marz Date: Wed, 24 Jun 2015 18:02:20 -0400 Subject: [PATCH] allow coerce-path and comp-paths to work with more sequence types --- src/com/rpl/specter/impl.cljc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/com/rpl/specter/impl.cljc b/src/com/rpl/specter/impl.cljc index 28e2516..4b943c4 100644 --- a/src/com/rpl/specter/impl.cljc +++ b/src/com/rpl/specter/impl.cljc @@ -206,6 +206,18 @@ #?(:clj java.util.List :cljs cljs.core/PersistentVector) (coerce-path [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) (coerce-path [this]