From 2594bf9843340a657a85b605ff1b5cb7f1e46147 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Tue, 16 Feb 2010 15:29:46 +1300 Subject: [PATCH] assocs: move conjoin and conjoin-at to assoc docs --- core/assocs/assocs-docs.factor | 10 +++++++++- core/sets/sets-docs.factor | 2 -- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/core/assocs/assocs-docs.factor b/core/assocs/assocs-docs.factor index ecbc2e6bc7..0d5a884832 100644 --- a/core/assocs/assocs-docs.factor +++ b/core/assocs/assocs-docs.factor @@ -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! diff --git a/core/sets/sets-docs.factor b/core/sets/sets-docs.factor index 999e963f36..d9b1271152 100644 --- a/core/sets/sets-docs.factor +++ b/core/sets/sets-docs.factor @@ -29,8 +29,6 @@ $nl "Adding elements to sets:" { $subsections adjoin - conjoin - conjoin-at } { $see-also member? member-eq? any? all? "assocs-sets" } ;