"filter empty?" is "any? not".

John Benediktsson 2012-07-19 16:33:01 -07:00
parent 918c643469
commit edd279d4fa
4 changed files with 4 additions and 4 deletions

View File

@ -456,7 +456,7 @@ M: ebnf-sequence build-locals ( code ast -- code )
elements>> filter-hidden dup length 1 = [ elements>> filter-hidden dup length 1 = [
first build-locals first build-locals
] [ ] [
dup [ ebnf-var? ] filter empty? [ dup [ ebnf-var? ] any? not [
drop drop
] [ ] [
[ [

View File

@ -68,7 +68,7 @@ SINGLETON: deprecation-observer
M: deprecation-observer definitions-changed M: deprecation-observer definitions-changed
drop keys [ word? ] filter drop keys [ word? ] filter
dup [ deprecated? ] filter empty? dup [ deprecated? ] any? not
[ [ check-deprecations ] each ] [ [ check-deprecations ] each ]
[ drop initialize-deprecation-notes ] if ; [ drop initialize-deprecation-notes ] if ;

View File

@ -76,7 +76,7 @@ SYMBOL: total
! Part II: Topologically sorting specializers ! Part II: Topologically sorting specializers
: maximal-element ( seq quot -- n elt ) : maximal-element ( seq quot -- n elt )
dupd [ dupd [
swapd [ call +lt+ = ] 2curry filter empty? swapd [ call +lt+ = ] 2curry any? not
] 2curry find [ "Topological sort failed" throw ] unless* ; ] 2curry find [ "Topological sort failed" throw ] unless* ;
inline inline

View File

@ -164,7 +164,7 @@ DEFER: query->rrs
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
: is-nx ( message -- message/f ) : is-nx ( message -- message/f )
[ message-query name>> records [ name>> = ] with filter empty? ] [ message-query name>> records [ name>> = ] with any? not ]
[ [
NAME-ERROR >>rcode NAME-ERROR >>rcode
dup dup