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
|
! Copyright (C) 2007, 2009 Daniel Ehrenberg, Slava Pestov, and Doug Coleman
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: help.markup help.syntax kernel sequences
|
USING: help.markup help.syntax kernel sequences
|
||||||
sequences.private namespaces math quotations assocs.private ;
|
sequences.private namespaces math quotations assocs.private
|
||||||
|
sets ;
|
||||||
IN: assocs
|
IN: assocs
|
||||||
|
|
||||||
ARTICLE: "alists" "Association lists"
|
ARTICLE: "alists" "Association lists"
|
||||||
|
|
@ -90,6 +91,8 @@ ARTICLE: "assocs-values" "Transposed assoc operations"
|
||||||
|
|
||||||
ARTICLE: "assocs-sets" "Set-theoretic operations on assocs"
|
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)."
|
"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
|
{ $subsections
|
||||||
assoc-subset?
|
assoc-subset?
|
||||||
assoc-intersect
|
assoc-intersect
|
||||||
|
|
@ -98,6 +101,11 @@ ARTICLE: "assocs-sets" "Set-theoretic operations on assocs"
|
||||||
substitute
|
substitute
|
||||||
extract-keys
|
extract-keys
|
||||||
}
|
}
|
||||||
|
"Adding elements to sets:"
|
||||||
|
{ $subsections
|
||||||
|
conjoin
|
||||||
|
conjoin-at
|
||||||
|
}
|
||||||
"Destructive operations:"
|
"Destructive operations:"
|
||||||
{ $subsections
|
{ $subsections
|
||||||
assoc-union!
|
assoc-union!
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,6 @@ $nl
|
||||||
"Adding elements to sets:"
|
"Adding elements to sets:"
|
||||||
{ $subsections
|
{ $subsections
|
||||||
adjoin
|
adjoin
|
||||||
conjoin
|
|
||||||
conjoin-at
|
|
||||||
}
|
}
|
||||||
{ $see-also member? member-eq? any? all? "assocs-sets" } ;
|
{ $see-also member? member-eq? any? all? "assocs-sets" } ;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue