]> gitweb.factorcode.org Git - factor.git/commitdiff
Rename reduce-output -> reduce-outputs
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 9 Jan 2009 21:39:47 +0000 (15:39 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 9 Jan 2009 21:39:47 +0000 (15:39 -0600)
basis/combinators/smart/smart-docs.factor
basis/combinators/smart/smart-tests.factor
basis/combinators/smart/smart.factor

index 69ec3e701304c1e1591e100482232f17bb1dda38..3df709c9fa5d03f85f12a0d72e42c5334f53bda7 100644 (file)
@@ -48,7 +48,7 @@ HELP: output>sequence
     }
 } ;
 
-HELP: reduce-output
+HELP: reduce-outputs
 { $values
      { "quot" quotation } { "operation" quotation }
      { "newquot" quotation }
@@ -57,7 +57,7 @@ HELP: reduce-output
 { $examples
     { $example
         "USING: combinators.smart kernel math prettyprint ;"
-        "3 [ [ 4 * ] [ 4 / ] [ 4 - ] tri ] [ * ] reduce-output ."
+        "3 [ [ 4 * ] [ 4 / ] [ 4 - ] tri ] [ * ] reduce-outputs ."
         "-9"
     }
 } ;
@@ -84,7 +84,7 @@ ARTICLE: "combinators.smart" "Smart combinators"
 { $subsection output>sequence }
 { $subsection output>array }
 "Reducing the output of a quotation:"
-{ $subsection reduce-output }
+{ $subsection reduce-outputs }
 "Summing the output of a quotation:"
 { $subsection sum-outputs } ;
 
index 4be445e465a47cdce7b38d6968cd18443605e26b..54c53477dbc90c19b631da12495ffd1b8488d506 100644 (file)
@@ -14,8 +14,8 @@ IN: combinators.smart.tests
 
 
 
-[ 6 ] [ [ 1 2 3 ] [ + ] reduce-output ] unit-test
+[ 6 ] [ [ 1 2 3 ] [ + ] reduce-outputs ] unit-test
 
-[ [ 1 2 3 ] [ + ] reduce-output ] must-infer
+[ [ 1 2 3 ] [ + ] reduce-outputs ] must-infer
 
 [ 6 ] [ [ 1 2 3 ] sum-outputs ] unit-test
index fcd28aac74bfa704248e9cdbf684ce8f4a95dd31..7a68cb5c1c0bb82bca831d78ec74877f26d86fe7 100644 (file)
@@ -15,8 +15,8 @@ MACRO: input<sequence ( quot -- newquot )
     [ infer in>> ] keep
     '[ _ firstn @ ] ;
 
-MACRO: reduce-output ( quot operation -- newquot )
+MACRO: reduce-outputs ( quot operation -- newquot )
     [ dup infer out>> 1 [-] ] dip n*quot compose ;
 
 : sum-outputs ( quot -- n )
-    [ + ] reduce-output ; inline
+    [ + ] reduce-outputs ; inline