VocabularysequencesInputsOutputsWord descriptionRemoves 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.
ExamplesUSING: prettyprint math sequences ;
{ 0 0 1 2 3 0 0 } [ zero? ] trim-tail .
{ 0 0 1 2 3 }
See alsotrim,
trim-slice,
trim-head,
trim-head-slice,
trim-tail-sliceDefinition