From 892e41c1ce207682c4c0d726451c39280fc1fadd Mon Sep 17 00:00:00 2001 From: Alexander Iljin Date: Thu, 4 Aug 2016 21:12:19 +0300 Subject: [PATCH] assocs-docs: mark assoc-partition and partition as related words --- core/assocs/assocs-docs.factor | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/assocs/assocs-docs.factor b/core/assocs/assocs-docs.factor index 69591c7463..8fe38fd381 100644 --- a/core/assocs/assocs-docs.factor +++ b/core/assocs/assocs-docs.factor @@ -328,6 +328,8 @@ HELP: assoc-partition } { $description "Calls a predicate quotation on each key of the input assoc. If the test yields true, the key/value pair is added to " { $snippet "true-assoc" } "; if false, it's added to " { $snippet "false-assoc" } "." } ; +{ assoc-partition partition } related-words + HELP: assoc-any? { $values { "assoc" assoc } { "quot" { $quotation ( ... key value -- ... ? ) } } { "?" boolean } } { $description "Tests if the assoc contains an entry satisfying a predicate by applying the quotation to each entry in turn. Iteration stops if an entry is found for which the quotation outputs a true value." } ;