sets.extras: few more words.

db4
John Benediktsson 2013-04-24 07:58:50 -07:00
parent 23b3bcc313
commit f1b21b1827
1 changed files with 6 additions and 0 deletions

View File

@ -11,3 +11,9 @@ IN: sets.extras
: proper-subset? ( set1 set2 -- ? )
2dup subset? [ swap subset? not ] [ 2drop f ] if ;
: superset? ( set1 set2 -- ? )
swap subset? ;
: disjoint? ( set1 set2 -- ? )
intersects? not ;