"filter empty?" is "any? not".
parent
918c643469
commit
edd279d4fa
|
|
@ -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
|
||||||
] [
|
] [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -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 ;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue