Skip to content

Commit

Permalink
splitting.monotonic-docs: update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ilin authored and mrjbq7 committed Jan 20, 2017
1 parent 908ff65 commit b5c71c4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion basis/splitting/monotonic/monotonic-docs.factor
Expand Up @@ -25,15 +25,22 @@ HELP: monotonic-split
{ "seq" sequence } { "quot" quotation }
{ "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
{ $example
"USING: splitting.monotonic math prettyprint ;"
"{ 1 2 3 2 3 4 } [ < ] monotonic-split ."
"{ { 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
{ $values
{ "seq" sequence }
Expand Down

0 comments on commit b5c71c4

Please sign in to comment.