diff --git a/basis/combinators/smart/smart-docs.factor b/basis/combinators/smart/smart-docs.factor index bc7b88a0fc..729adc49d7 100644 --- a/basis/combinators/smart/smart-docs.factor +++ b/basis/combinators/smart/smart-docs.factor @@ -1,13 +1,13 @@ ! Copyright (C) 2009 Doug Coleman. ! See http://factorcode.org/license.txt for BSD license. USING: classes.tuple help.markup help.syntax kernel math -quotations sequences stack-checker ; +quotations sequences stack-checker arrays ; IN: combinators.smart HELP: inputarray { $values - { "quot" quotation } - { "newquot" quotation } + { "quot" quotation } + { "array" array } } { $description "Infers the number of outputs from the quotation and constructs an array from those outputs." } { $examples @@ -36,8 +36,8 @@ HELP: output>array HELP: output>sequence { $values - { "quot" quotation } { "exemplar" "an exemplar" } - { "newquot" quotation } + { "quot" quotation } { "exemplar" "an exemplar" } + { "seq" sequence } } { $description "Infers the number of outputs from the quotation and constructs a new sequence from those objects of the same type as the exemplar." } { $examples @@ -50,8 +50,7 @@ HELP: output>sequence HELP: reduce-outputs { $values - { "quot" quotation } { "operation" quotation } - { "newquot" quotation } + { "quot" quotation } { "operation" quotation } } { $description "Infers the number of outputs from " { $snippet "quot" } " and reduces them using " { $snippet "operation" } ". The identity for the " { $link reduce } " operation is the first output." } { $examples @@ -64,8 +63,8 @@ HELP: reduce-outputs HELP: sum-outputs { $values - { "quot" quotation } - { "n" integer } + { "quot" quotation } + { "n" integer } } { $description "Infers the number of outputs from " { $snippet "quot" } " and returns their sum." } { $examples @@ -78,8 +77,8 @@ HELP: sum-outputs HELP: append-outputs { $values - { "quot" quotation } - { "seq" sequence } + { "quot" quotation } + { "seq" sequence } } { $description "Infers the number of outputs from " { $snippet "quot" } " and returns a sequence of the outputs appended." } { $examples @@ -92,8 +91,8 @@ HELP: append-outputs HELP: append-outputs-as { $values - { "quot" quotation } { "exemplar" sequence } - { "seq" sequence } + { "quot" quotation } { "exemplar" sequence } + { "seq" sequence } } { $description "Infers the number of outputs from " { $snippet "quot" } " and returns a sequence of type " { $snippet "exemplar" } " of the outputs appended." } { $examples @@ -119,7 +118,7 @@ HELP: keep-inputs HELP: dropping { $values { "quot" quotation } - { "quot" quotation } + { "quot'" quotation } } { $description "Outputs a quotation that, when called, will have the effect of dropping the number of inputs to the original quotation." } { $examples @@ -132,7 +131,7 @@ HELP: dropping HELP: inputtime { $values { "samples" integer } - { "time" duration } + { "seconds" integer } } -{ $description "Converts a sample interval count to a " { $link duration } " based on the value of " { $link samples-per-second } "." } ; +{ $description "Converts a sample interval count to an integer based on the value of " { $link samples-per-second } "." } ; HELP: top-down { $values