]> gitweb.factorcode.org Git - factor.git/commitdiff
sequences.deep: find drop >boolean is any?
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 16 Oct 2011 20:15:05 +0000 (13:15 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 16 Oct 2011 20:15:05 +0000 (13:15 -0700)
basis/sequences/deep/deep.factor

index 6238962b6c9c4768be13e582a1737b8499836838..bab9f17af594ded0d8281f9293b2042428920d25 100644 (file)
@@ -27,7 +27,7 @@ M: object branch? drop f ;
 : (deep-find) ( ... obj quot: ( ... elt -- ... ? ) -- ... elt ? )
     [ call ] 2keep rot [ drop t ] [
         over branch? [
-            [ f ] 2dip '[ nip _ (deep-find) ] find drop >boolean
+            [ f ] 2dip '[ nip _ (deep-find) ] any?
         ] [ 2drop f f ] if  
     ] if ; inline recursive