Vocabulary
splitting

Inputs
seqa sequence
enda sequence


Outputs
newseqa new sequence
?a boolean


Word description
Tests if seq ends with end. If there is a match, outputs the subrange of seq excluding end, and t. If there is no match, outputs seq and f.

Definition