Are head and tail the only two ways to terminate processing a stream? If I'm processing a potentially long stream of text data (-i line), and I know I want to stop processing after, say, an empty line comes through, I can't think of a way to do that.
Upon seeing this @mattnibs remarked:
Yeah, I’ve thought about having an exit operator that takes a Boolean expression and exits when the expression evaluates true.
tl;dr
A user may want to craft a pipeline that intentionally stops processing the input stream when a particular condition is met.
Details
At the time this issue is being filed, Zed is at commit c1da204.
A user inquired in a recent community Slack thread:
Upon seeing this @mattnibs remarked: