]> gitweb.factorcode.org Git - factor.git/commitdiff
don't write docs with auto-use enabled
authorDoug Coleman <erg@jobim.local>
Fri, 19 Jun 2009 00:29:10 +0000 (19:29 -0500)
committerDoug Coleman <erg@jobim.local>
Fri, 19 Jun 2009 00:29:10 +0000 (19:29 -0500)
core/sets/sets-docs.factor

index 1e4ceb5680e2595ea5475bf1ea1b4b9d10cc08f0..298fcbeeae23bf6801fa7dfab557856f148c60b0 100755 (executable)
@@ -168,8 +168,8 @@ HELP: sequence>assoc
     { "assoc" assoc }
 }
 { $examples 
-    { $example "! Count the number of times the elements of two sequences appear."
-               "USING: prettyprint sets ;"
+    { $example "! Iterate over a sequence and increment the count at each element"
+               "USING: assocs prettyprint sets ;"
                "\"aaabc\" [ inc-at ] H{ } sequence>assoc ."
                "H{ { 97 3 } { 98 1 } { 99 1 } }"
     }
@@ -182,8 +182,8 @@ HELP: sequence>assoc*
     { "assoc" assoc }
 }
 { $examples 
-    { $example "! Count the number of times the elements of two sequences appear."
-               "USING: prettyprint sets ;"
+    { $example "! Iterate over a sequence and add the counts to an existing assoc"
+               "USING: assocs prettyprint sets kernel ;"
                "H{ { 97 2 } { 98 1 } } clone \"aaabc\" [ inc-at ] sequence>assoc* ."
                "H{ { 97 5 } { 98 2 } { 99 1 } }"
     }
@@ -196,8 +196,8 @@ HELP: sequence>hashtable
     { "hashtable" hashtable }
 }
 { $examples 
-    { $example "! Count the number of times the elements of two sequences appear."
-               "USING: prettyprint sets ;"
+    { $example "! Count the number of times an element occurs in a sequence"
+               "USING: assocs prettyprint sets ;"
                "\"aaabc\" [ inc-at ] sequence>hashtable ."
                "H{ { 97 3 } { 98 1 } { 99 1 } }"
     }