sequences.deep: find drop >boolean is any?
parent
c8732657b7
commit
fb9612ef73
|
@ -27,7 +27,7 @@ M: object branch? drop f ;
|
||||||
: (deep-find) ( ... obj quot: ( ... elt -- ... ? ) -- ... elt ? )
|
: (deep-find) ( ... obj quot: ( ... elt -- ... ? ) -- ... elt ? )
|
||||||
[ call ] 2keep rot [ drop t ] [
|
[ call ] 2keep rot [ drop t ] [
|
||||||
over branch? [
|
over branch? [
|
||||||
[ f ] 2dip '[ nip _ (deep-find) ] find drop >boolean
|
[ f ] 2dip '[ nip _ (deep-find) ] any?
|
||||||
] [ 2drop f f ] if
|
] [ 2drop f f ] if
|
||||||
] if ; inline recursive
|
] if ; inline recursive
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue