]> gitweb.factorcode.org Git - factor.git/blobdiff - core/sets/sets-docs.factor
stomp.cli: simplify
[factor.git] / core / sets / sets-docs.factor
index 9cef927770e2f33994e69a79a2181a123a1bde36..54d82d5de996fbd35f73ff0676336c7351db137d 100644 (file)
@@ -1,5 +1,5 @@
-USING: assocs hashtables help.markup help.syntax kernel
-quotations sequences vectors ;
+USING: assocs help.markup help.syntax kernel
+sequences vectors ;
 IN: sets
 
 ARTICLE: "sets" "Sets"
@@ -45,8 +45,8 @@ ARTICLE: "set-operations" "Operations on sets"
 }
 "Operations on groups of sets:"
 { $subsections
-    combine
-    refine
+    union-all
+    intersect-all
 }
 "An optional generic word for creating sets of the same class as a given set:"
 { $subsections set-like }
@@ -59,8 +59,8 @@ ARTICLE: "set-operations" "Operations on sets"
 }
 "Utilities for sets and sequences:"
 { $subsections
-     within
-     without
+    within
+    without
 } ;
 
 ARTICLE: "set-implementations" "Set implementations"
@@ -199,8 +199,8 @@ HELP: set=
 
 HELP: gather
 { $values
-     { "seq" sequence } { "quot" { $quotation ( ... elt -- ... elts ) } }
-     { "newseq" sequence } }
+    { "seq" sequence } { "quot" { $quotation ( ... elt -- ... elts ) } }
+    { "newseq" sequence } }
 { $description "Maps a quotation over a sequence, concatenates the results of the mapping, and removes duplicates." } ;
 
 HELP: set-like
@@ -226,10 +226,10 @@ HELP: cardinality
 { $values { "set" set } { "n" "a non-negative integer" } }
 { $description "Returns the number of elements in the set. All sets support this operation." } ;
 
-HELP: refine
+HELP: intersect-all
 { $values { "sets" sequence } { "set/f" { $maybe set } } }
 { $description "Outputs the intersection of all the sets of the sequence " { $snippet "sets" } ", or " { $link f } " if " { $snippet "sets" } " is empty." } ;
 
-HELP: combine
+HELP: union-all
 { $values { "sets" { $sequence set } } { "set/f" { $maybe set } } }
 { $description "Outputs the union of a sequence of sets, or " { $link f } " if the sequence is empty." } ;