| ▲ | throw-the-towel 2 days ago | |
String.splitRight, for one. (As an example: "www.a.north.website.com".splitRight(".", 3) == ["www.a.north", "website", "com"].) | ||
| ▲ | bakkoting 2 days ago | parent | next [-] | |
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. | ||
| ▲ | fireflash38 2 days ago | parent | prev [-] | |
When would you want that when it wouldn't be covered by more domain-specific use cases? | ||