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