sequences-docs: add short help for the words longest and shortest

modern-harvey2
Alexander Iljin 2017-06-11 23:14:40 +03:00
parent 24a071d6e6
commit 106e1ea4f3
1 changed files with 10 additions and 0 deletions

View File

@ -1205,6 +1205,16 @@ HELP: supremum
{ min max supremum infimum } related-words
HELP: shortest
{ $values { "seq" sequence } { "elt" object } }
{ $description "Outputs the shortest element of " { $snippet "seq" } "." } ;
HELP: longest
{ $values { "seq" sequence } { "elt" object } }
{ $description "Outputs the longest element of " { $snippet "seq" } "." } ;
{ shortest longest } related-words
HELP: produce
{ $values { "pred" { $quotation ( ..a -- ..b ? ) } } { "quot" { $quotation ( ..b -- ..a obj ) } } { "seq" 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." }