Slice at all positions where isTerminator is false before current element and true at current.
See Source File