splitting.monotonic-docs: update documentation

char-rename
Alexander Iljin 2017-01-18 13:51:16 +03:00 committed by John Benediktsson
parent 908ff65bef
commit b5c71c4846
1 changed files with 8 additions and 1 deletions

View File

@ -25,15 +25,22 @@ HELP: monotonic-split
{ "seq" sequence } { "quot" quotation } { "seq" sequence } { "quot" quotation }
{ "pieces" "a sequence of sequences" } { "pieces" "a sequence of sequences" }
} }
{ $description "Monotonically splits a sequence." } { $description "Splits a sequence into subsequences, in which for all consecutive pairs of elements the quotation returns true." }
{ $examples { $examples
{ $example { $example
"USING: splitting.monotonic math prettyprint ;" "USING: splitting.monotonic math prettyprint ;"
"{ 1 2 3 2 3 4 } [ < ] monotonic-split ." "{ 1 2 3 2 3 4 } [ < ] monotonic-split ."
"{ { 1 2 3 } { 2 3 4 } }" "{ { 1 2 3 } { 2 3 4 } }"
} }
{ $example
"USING: splitting.monotonic math prettyprint ;"
"{ 1 2 3 2 1 0 } [ < ] monotonic-split ."
"{ { 1 2 3 } { 2 } { 1 } { 0 } }"
}
} ; } ;
{ monotonic-split monotonic-split-slice } related-words
HELP: downward-slices HELP: downward-slices
{ $values { $values
{ "seq" sequence } { "seq" sequence }