On Tuesday, 31 May 2016 at 17:54:34 UTC, qznc wrote:
There is a special version of find for searching a single char in a string. Using a one-letter needle string is more like a user mistake than something to optimize for.
At compile time you may not know the length of the needle, like in the grep command.