Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
throw-the-towel
· 8mo ago · 0 comments
String.splitRight, for one. (As an example: "www.a.north.website.com".splitRight(".", 3) == ["www.a.north", "website", "com"].)
Comments
[–]
bakkoting
8mo 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.
[–]
fireflash38
8mo ago
When would you want that when it wouldn't be covered by more domain-specific use cases?