assocs: move conjoin and conjoin-at to assoc docs
parent
913c949a5a
commit
2594bf9843
|
|
@ -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!
|
||||
|
|
|
|||
|
|
@ -29,8 +29,6 @@ $nl
|
|||
"Adding elements to sets:"
|
||||
{ $subsections
|
||||
adjoin
|
||||
conjoin
|
||||
conjoin-at
|
||||
}
|
||||
{ $see-also member? member-eq? any? all? "assocs-sets" } ;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue