From 5d7299b1af8da894b655a5288ad66389bfb2af8d Mon Sep 17 00:00:00 2001 From: Alexander Iljin Date: Fri, 13 Jan 2017 13:22:22 +0300 Subject: [PATCH] sequences-docs: add some related-words --- core/sequences/sequences-docs.factor | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/sequences/sequences-docs.factor b/core/sequences/sequences-docs.factor index e88a0871ad..c64f56ec8c 100644 --- a/core/sequences/sequences-docs.factor +++ b/core/sequences/sequences-docs.factor @@ -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." }