]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/sequences/deep/deep.factor
core: subseq-index? -> subseq-of?
[factor.git] / basis / sequences / deep / deep.factor
index 36911bc12b8e9441c7ad7a432aa9617a19a0e6ba..9c1df0d31660f2cad577046e897385ad6026dfef 100644 (file)
@@ -54,9 +54,9 @@ M: object branch? drop f ;
         _ swap dup branch? [ member? ] [ 2drop f ] if
     ] deep-find >boolean ;
 
-: deep-subseq? ( subseq seq -- ? )
-    swap '[
-        _ swap dup branch? [ subseq? ] [ 2drop f ] if
+: deep-subseq-of? ( seq subseq -- ? )
+   '[
+        _ over branch? [ subseq-of? ] [ 2drop f ] if
     ] deep-find >boolean ;
 
 : deep-map! ( ... obj quot: ( ... elt -- ... elt' ) -- ... obj )