]> gitweb.factorcode.org Git - factor.git/commitdiff
sequences-docs: add some related-words
authorAlexander Iljin <ajsoft@yandex.ru>
Fri, 13 Jan 2017 10:22:22 +0000 (13:22 +0300)
committerAlexander Iljin <ajsoft@yandex.ru>
Fri, 13 Jan 2017 10:31:48 +0000 (13:31 +0300)
core/sequences/sequences-docs.factor

index e88a0871adbd89c40ff90b94526157229b9b835c..c64f56ec8c56b8615076e7d85a23e916b612b2ef 100644 (file)
@@ -1026,11 +1026,15 @@ HELP: head-slice*
 { $description "Outputs a virtual sequence sharing storage with 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." }
 { $errors "Throws an error if the index is out of bounds." } ;
 
+{ head-slice head-slice* } related-words
+
 HELP: tail-slice*
 { $values { "seq" sequence } { "n" "a non-negative integer" } { "slice" "a slice" } }
 { $description "Outputs a virtual sequence sharing storage with the last " { $snippet "n" } " elements of the input sequence." }
 { $errors "Throws an error if the index is out of bounds." } ;
 
+{ tail-slice tail-slice* } related-words
+
 HELP: head
 { $values { "seq" sequence } { "n" "a non-negative integer" } { "headseq" "a new sequence" } }
 { $description "Outputs a new sequence consisting of the first " { $snippet "n" } " elements of the input sequence." }