]> gitweb.factorcode.org Git - factor.git/commitdiff
sequences.extras: correct help for arg-min/max
authorrazetime <raghuallthetime@hotmail.com>
Tue, 6 Dec 2022 17:19:00 +0000 (22:49 +0530)
committerrazetime <raghuallthetime@hotmail.com>
Tue, 6 Dec 2022 17:19:00 +0000 (22:49 +0530)
extra/sequences/extras/extras-docs.factor

index 29bc66428576744c9152957fdb362ccc72144a04..97ac34ed813416c9b25f4597d9c1841a130cc8ce 100644 (file)
@@ -241,11 +241,11 @@ HELP: start-all*
 
 HELP: arg-max
 { $values { "seq" sequence } { "n" integer } }
-{ $description "Outputs the sequence with the largest item." } ;
+{ $description "Outputs the index of the element with the largest value in " { $snippet "seq" } "." } ;
 
 HELP: arg-min
 { $values { "seq" sequence } { "n" integer } }
-{ $description "Outputs the sequence with the smallest item." } ;
+{ $description "Outputs the index of the element with the smallest value in " { $snippet "seq" } "." } ;
 
 { arg-max arg-min } related-words