On Tuesday, 25 October 2016 at 21:46:30 UTC, safety0ff wrote: > > P.S. I am aware that this pessimises popFront for code which > only counts codepoints without inspecting them. Unfortunately it also changes the API of popFront to throw on invalid characters. So the example would need to be reworked.