assocs: move conjoin and conjoin-at to assoc docs

Slava Pestov 2010-02-16 15:29:46 +13:00
parent 913c949a5a
commit 2594bf9843
2 changed files with 9 additions and 3 deletions

View 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!

View File

@ -29,8 +29,6 @@ $nl
"Adding elements to sets:"
{ $subsections
adjoin
conjoin
conjoin-at
}
{ $see-also member? member-eq? any? all? "assocs-sets" } ;