Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

String.splitRight, for one. (As an example: "www.a.north.website.com".splitRight(".", 3) == ["www.a.north", "website", "com"].)
 help



Python and Rust have such a thing, but not e.g. Java, Go, C#. And I can't find any libraries on npm which do this. That seems like a very niche need, not actually the sort of thing whose absence causes people to have lots of npm dependencies.

When would you want that when it wouldn't be covered by more domain-specific use cases?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: