]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/sequences/extras/extras-docs.factor
factor: rename count-by back to count. count* -> percent-of
[factor.git] / extra / sequences / extras / extras-docs.factor
index 6f8a5e3c9e73869b03b2253db5f1db36cbbda7e3..f21115b99dd562ae66855b9ef54b8808f2173f7b 100644 (file)
@@ -69,13 +69,13 @@ HELP: 2map-index
 { $description "Calls the quotation with each pair of elements of the two sequences and their index on the stack, with the index on the top of the stack. Collects the outputs of the quotation and outputs them into a new sequence of the same type as the first sequence." }
 { $see-also 2map map-index } ;
 
-HELP: count-by*
+HELP: percent-of
 { $values
     { "seq" sequence }
     { "quot" { $quotation ( ... elt -- ... ? ) } }
     { "%" rational } }
 { $description "Outputs the fraction of elements in the sequence for which the predicate quotation matches." }
-{ $examples { $example "USING: math ranges prettyprint sequences.extras ;" "100 [1..b] [ even? ] count-by* ." "1/2" } } ;
+{ $examples { $example "USING: math ranges prettyprint sequences.extras ;" "100 [1..b] [ even? ] percent-of ." "1/2" } } ;
 
 HELP: collapse
 { $values