From 07315431c81cfee27b45820f8752cc33b10118c4 Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Thu, 3 Jul 2008 12:26:12 -0500 Subject: [PATCH] sequences.lib-docs: remove sigma and count --- extra/sequences/lib/lib-docs.factor | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/extra/sequences/lib/lib-docs.factor b/extra/sequences/lib/lib-docs.factor index 14fb6eaebf..b2e805304e 100755 --- a/extra/sequences/lib/lib-docs.factor +++ b/extra/sequences/lib/lib-docs.factor @@ -19,25 +19,6 @@ HELP: each-withn } { $see-also map-withn } ; -HELP: sigma -{ $values { "seq" sequence } { "quot" quotation } { "n" number } } -{ $description "Like map sum, but without creating an intermediate sequence." } -{ $example - "! Find the sum of the squares [0,99]" - "USING: math math.ranges sequences.lib prettyprint ;" - "100 [1,b] [ sq ] sigma ." - "338350" -} ; - -HELP: count -{ $values { "seq" sequence } { "quot" quotation } { "n" integer } } -{ $description "Efficiently returns the number of elements that the predicate quotation matches." } -{ $example - "USING: math math.ranges sequences.lib prettyprint ;" - "100 [1,b] [ even? ] count ." - "50" -} ; - HELP: if-seq { $values { "seq" sequence } { "quot1" quotation } { "quot2" quotation } } { $description "Makes an implicit check if the sequence is empty. If the sequence has any elements, " { $snippet "quot1" } " is called on it. Otherwise, the empty sequence is dropped and " { $snippet "quot2" } " is called." }