]> gitweb.factorcode.org Git - factor.git/commitdiff
assocs: move conjoin and conjoin-at to assoc docs 0.92
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 16 Feb 2010 02:29:46 +0000 (15:29 +1300)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 16 Feb 2010 02:29:46 +0000 (15:29 +1300)
core/assocs/assocs-docs.factor
core/sets/sets-docs.factor

index ecbc2e6bc7e942812b7e21be51797bab7a537242..0d5a884832ce003eafa0d8e13ab79999a9b236d9 100644 (file)
@@ -1,7 +1,8 @@
 ! Copyright (C) 2007, 2009 Daniel Ehrenberg, Slava Pestov, and Doug Coleman
 ! See http://factorcode.org/license.txt for BSD license.
 USING: help.markup help.syntax kernel sequences
-sequences.private namespaces math quotations assocs.private ;
+sequences.private namespaces math quotations assocs.private
+sets ;
 IN: assocs
 
 ARTICLE: "alists" "Association lists"
@@ -90,6 +91,8 @@ ARTICLE: "assocs-values" "Transposed assoc operations"
 
 ARTICLE: "assocs-sets" "Set-theoretic operations on assocs"
 "It is often useful to use the keys of an associative mapping as a set, exploiting the constant or logarithmic lookup time of most implementations (" { $link "alists" } " being a notable exception)."
+$nl
+"Set-theoretic operations:"
 { $subsections
     assoc-subset?
     assoc-intersect
@@ -98,6 +101,11 @@ ARTICLE: "assocs-sets" "Set-theoretic operations on assocs"
     substitute
     extract-keys
 }
+"Adding elements to sets:"
+{ $subsections
+    conjoin
+    conjoin-at
+}
 "Destructive operations:"
 { $subsections
     assoc-union!
index 999e963f36d9fdb2eacf40ca4682f13c56066f25..d9b1271152b201c4b93938cd4cb26203fe0761e0 100644 (file)
@@ -29,8 +29,6 @@ $nl
 "Adding elements to sets:"
 { $subsections
     adjoin
-    conjoin
-    conjoin-at
 }
 { $see-also member? member-eq? any? all? "assocs-sets" } ;