It’s super easy to parse e.g. (element + terminator) sequences:
(x ++ %";")*
But it’s a bit obnoxious to parse separator-delimited ones:
x ++ (%"," ++ x)* --> { [ $0 ] + $1 }
That’s a common, useful pattern, so it should be convenient, e.g.:
join(%", ", x) // overloading `join` is semantically reasonable but a bit strange
x * %"," // not a big fan of overloading * like this, and I don’t want to add too many more operators
It’s super easy to parse e.g. (element + terminator) sequences:
But it’s a bit obnoxious to parse separator-delimited ones:
That’s a common, useful pattern, so it should be convenient, e.g.: