sequences, syntax, vocabs.parser: remove useless whitespace in docs
parent
33c14b8bb0
commit
dcb387630b
|
@ -1004,7 +1004,7 @@ HELP: trim-head
|
||||||
{ "seq" sequence } { "quot" quotation }
|
{ "seq" sequence } { "quot" quotation }
|
||||||
{ "newseq" sequence } }
|
{ "newseq" sequence } }
|
||||||
{ $description "Removes elements starting from the left side of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a new sequence." }
|
{ $description "Removes elements starting from the left side of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a new sequence." }
|
||||||
{ $example "" "USING: prettyprint math sequences ;"
|
{ $example "USING: prettyprint math sequences ;"
|
||||||
"{ 0 0 1 2 3 0 0 } [ zero? ] trim-head ."
|
"{ 0 0 1 2 3 0 0 } [ zero? ] trim-head ."
|
||||||
"{ 1 2 3 0 0 }"
|
"{ 1 2 3 0 0 }"
|
||||||
} ;
|
} ;
|
||||||
|
@ -1014,7 +1014,7 @@ HELP: trim-head-slice
|
||||||
{ "seq" sequence } { "quot" quotation }
|
{ "seq" sequence } { "quot" quotation }
|
||||||
{ "slice" slice } }
|
{ "slice" slice } }
|
||||||
{ $description "Removes elements starting from the left side of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a slice" }
|
{ $description "Removes elements starting from the left side of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a slice" }
|
||||||
{ $example "" "USING: prettyprint math sequences ;"
|
{ $example "USING: prettyprint math sequences ;"
|
||||||
"{ 0 0 1 2 3 0 0 } [ zero? ] trim-head-slice ."
|
"{ 0 0 1 2 3 0 0 } [ zero? ] trim-head-slice ."
|
||||||
"T{ slice { from 2 } { to 7 } { seq { 0 0 1 2 3 0 0 } } }"
|
"T{ slice { from 2 } { to 7 } { seq { 0 0 1 2 3 0 0 } } }"
|
||||||
} ;
|
} ;
|
||||||
|
@ -1024,7 +1024,7 @@ HELP: trim-tail
|
||||||
{ "seq" sequence } { "quot" quotation }
|
{ "seq" sequence } { "quot" quotation }
|
||||||
{ "newseq" sequence } }
|
{ "newseq" sequence } }
|
||||||
{ $description "Removes elements starting from the right side of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a new sequence." }
|
{ $description "Removes elements starting from the right side of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a new sequence." }
|
||||||
{ $example "" "USING: prettyprint math sequences ;"
|
{ $example "USING: prettyprint math sequences ;"
|
||||||
"{ 0 0 1 2 3 0 0 } [ zero? ] trim-tail ."
|
"{ 0 0 1 2 3 0 0 } [ zero? ] trim-tail ."
|
||||||
"{ 0 0 1 2 3 }"
|
"{ 0 0 1 2 3 }"
|
||||||
} ;
|
} ;
|
||||||
|
@ -1034,7 +1034,7 @@ HELP: trim-tail-slice
|
||||||
{ "seq" sequence } { "quot" quotation }
|
{ "seq" sequence } { "quot" quotation }
|
||||||
{ "slice" slice } }
|
{ "slice" slice } }
|
||||||
{ $description "Removes elements starting from the right side of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a slice." }
|
{ $description "Removes elements starting from the right side of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a slice." }
|
||||||
{ $example "" "USING: prettyprint math sequences ;"
|
{ $example "USING: prettyprint math sequences ;"
|
||||||
"{ 0 0 1 2 3 0 0 } [ zero? ] trim-tail-slice ."
|
"{ 0 0 1 2 3 0 0 } [ zero? ] trim-tail-slice ."
|
||||||
"T{ slice { from 0 } { to 5 } { seq { 0 0 1 2 3 0 0 } } }"
|
"T{ slice { from 0 } { to 5 } { seq { 0 0 1 2 3 0 0 } } }"
|
||||||
} ;
|
} ;
|
||||||
|
@ -1044,7 +1044,7 @@ HELP: trim
|
||||||
{ "seq" sequence } { "quot" quotation }
|
{ "seq" sequence } { "quot" quotation }
|
||||||
{ "newseq" sequence } }
|
{ "newseq" sequence } }
|
||||||
{ $description "Removes elements starting from the left and right sides of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a new sequence." }
|
{ $description "Removes elements starting from the left and right sides of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a new sequence." }
|
||||||
{ $example "" "USING: prettyprint math sequences ;"
|
{ $example "USING: prettyprint math sequences ;"
|
||||||
"{ 0 0 1 2 3 0 0 } [ zero? ] trim ."
|
"{ 0 0 1 2 3 0 0 } [ zero? ] trim ."
|
||||||
"{ 1 2 3 }"
|
"{ 1 2 3 }"
|
||||||
} ;
|
} ;
|
||||||
|
@ -1054,7 +1054,7 @@ HELP: trim-slice
|
||||||
{ "seq" sequence } { "quot" quotation }
|
{ "seq" sequence } { "quot" quotation }
|
||||||
{ "slice" slice } }
|
{ "slice" slice } }
|
||||||
{ $description "Removes elements starting from the left and right sides of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a slice." }
|
{ $description "Removes elements starting from the left and right sides of a sequence if they match a predicate. Once an element does not match, the test stops and the rest of the sequence is left on the stack as a slice." }
|
||||||
{ $example "" "USING: prettyprint math sequences ;"
|
{ $example "USING: prettyprint math sequences ;"
|
||||||
"{ 0 0 1 2 3 0 0 } [ zero? ] trim-slice ."
|
"{ 0 0 1 2 3 0 0 } [ zero? ] trim-slice ."
|
||||||
"T{ slice { from 2 } { to 5 } { seq { 0 0 1 2 3 0 0 } } }"
|
"T{ slice { from 2 } { to 5 } { seq { 0 0 1 2 3 0 0 } } }"
|
||||||
} ;
|
} ;
|
||||||
|
|
Loading…
Reference in New Issue