splitting.extras-docs: mark -slice variants as related-words

char-rename
Alexander Iljin 2017-01-18 13:54:28 +03:00 committed by John Benediktsson
parent 4fa1103179
commit d5b74bd776
1 changed files with 6 additions and 0 deletions

View File

@ -6,11 +6,17 @@ HELP: split*-when
{ $description "A variant of " { $link split-when } " that includes the elements along which the sequence was split." } { $description "A variant of " { $link split-when } " that includes the elements along which the sequence was split." }
{ $examples { $example "USING: ascii kernel prettyprint splitting.extras ;" "\"hello,world-how.are:you\" [ letter? not ] split*-when ." "{ \"hello\" \",\" \"world\" \"-\" \"how\" \".\" \"are\" \":\" \"you\" }" } } ; { $examples { $example "USING: ascii kernel prettyprint splitting.extras ;" "\"hello,world-how.are:you\" [ letter? not ] split*-when ." "{ \"hello\" \",\" \"world\" \"-\" \"how\" \".\" \"are\" \":\" \"you\" }" } } ;
{ split*-when split*-when-slice } related-words
HELP: split* HELP: split*
{ $values { "seq" sequence } { "separators" sequence } { "pieces" "a new array" } } { $values { "seq" sequence } { "separators" sequence } { "pieces" "a new array" } }
{ $description "A variant of " { $link split } " that includes the elements along which the sequence was split." } { $description "A variant of " { $link split } " that includes the elements along which the sequence was split." }
{ $examples { $example "USING: prettyprint splitting.extras ;" "\"hello world-how are you?\" \" -\" split* ." "{ \"hello\" \" \" \"world\" \"-\" \"how\" \" \" \"are\" \" \" \"you?\" }" } } ; { $examples { $example "USING: prettyprint splitting.extras ;" "\"hello world-how are you?\" \" -\" split* ." "{ \"hello\" \" \" \"world\" \"-\" \"how\" \" \" \"are\" \" \" \"you?\" }" } } ;
{ split* split*-slice } related-words
HELP: split-find HELP: split-find
{ $values { "seq" sequence } { "quot" { $quotation ( seq -- i ) } } { "pieces" "a new array" } } { $values { "seq" sequence } { "quot" { $quotation ( seq -- i ) } } { "pieces" "a new array" } }
{ $description "Splits a sequence into slices using the provided quotation to find split points." } ; { $description "Splits a sequence into slices using the provided quotation to find split points." } ;
{ split-when-harvest split-when-slice-harvest } related-words