]> gitweb.factorcode.org Git - factor.git/commitdiff
sequences: relate max, min, supremum, infimum docs
authorJoe Groff <arcata@gmail.com>
Wed, 2 Nov 2011 20:43:06 +0000 (13:43 -0700)
committerJoe Groff <arcata@gmail.com>
Wed, 2 Nov 2011 20:43:06 +0000 (13:43 -0700)
Suggested by @yac. Closes #321.

core/sequences/sequences-docs.factor

index e17cdc9eb87a49963f3194bef30a32687c9e939d..5e8e19b2445b3dac0f73a9019cb65d0fb6516894 100644 (file)
@@ -989,6 +989,8 @@ HELP: supremum
 { $description "Outputs the greatest element of " { $snippet "seq" } "." }
 { $errors "Throws an error if the sequence is empty." } ;
 
+{ min max supremum infimum } related-words
+
 HELP: produce
 { $values { "pred" { $quotation "( ..a -- ..b ? )" } } { "quot" { $quotation "( ..b -- ..a obj )" } } { "seq" "a sequence" } }
 { $description "Calls " { $snippet "pred" } " repeatedly. If the predicate yields " { $link f } ", stops, otherwise, calls " { $snippet "quot" } " to yield a value. Values are accumulated and returned in a sequence at the end." }