On Tuesday, 29 October 2024 at 19:18:05 UTC, H. S. Teoh wrote:
        // This should do the job. Put it in a function if you need it
        // frequently.
        myInput.byChars.filter!(ch => ch != '_').to!int

That's similar to the workaround I used, but yours uses a lazy range so it's nicer than mine. Thanks for sharing!

Of course it's a tiny issue, but normally phobos functions are rather predictable so ironing out the final parts of phobos2 seems like a good idea.

Reply via email to