From 7ba89e29aaa67573141c61f2db7234e481c470e5 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Wed, 17 Sep 2008 00:49:55 -0500 Subject: [PATCH] add docs for gather --- core/sets/sets-docs.factor | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/sets/sets-docs.factor b/core/sets/sets-docs.factor index b3fa649dd1..5f7f4acf7a 100644 --- a/core/sets/sets-docs.factor +++ b/core/sets/sets-docs.factor @@ -1,4 +1,4 @@ -USING: kernel help.markup help.syntax sequences ; +USING: kernel help.markup help.syntax sequences quotations ; IN: sets ARTICLE: "sets" "Set-theoretic operations on sequences" @@ -111,3 +111,9 @@ HELP: subset? HELP: set= { $values { "seq1" sequence } { "seq2" sequence } { "?" "a boolean" } } { $description "Tests if both sequences contain the same elements, disregrading order and duplicates." } ; + +HELP: gather +{ $values + { "seq" sequence } { "quot" quotation } + { "newseq" sequence } } +{ $description "Maps a quotation onto a sequence, concatenates the results of the mapping, and removes duplicates." } ;