]> gitweb.factorcode.org Git - factor.git/commitdiff
sequences-docs: simplify the head* description
authorAlexander Iljin <ajsoft@yandex.ru>
Thu, 16 Feb 2017 22:02:32 +0000 (01:02 +0300)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 17 Mar 2017 15:22:18 +0000 (08:22 -0700)
core/sequences/sequences-docs.factor

index b0310da2b31683e17be5aba2893e83b167b118af..c80d0b1a3c58dcff76509e364a4bf4f6c8252075 100644 (file)
@@ -1079,7 +1079,7 @@ HELP: rest
 
 HELP: head*
 { $values { "seq" sequence } { "n" "a non-negative integer" } { "headseq" "a new sequence" } }
-{ $description "Outputs a new sequence consisting of all elements of " { $snippet "seq" } " until the " { $snippet "n" } "th element from the end. In other words, it outputs a sequence of the first " { $snippet "l-n" } " elements of the input sequence, where " { $snippet "l" } " is its length." }
+{ $description "Outputs a new sequence consisting of all elements of " { $snippet "seq" } " until the " { $snippet "n" } "th element from the end. In other words, it removes the last " { $snippet "n" } " elements." }
 { $examples
     { $example "USING: sequences prettyprint ;"
         "{ 1 2 3 4 5 6 7 } 2 head* ."