why is there no `String.replaceLast` which does th...
# stdlib
n
why is there no
String.replaceLast
which does the same as
String.replaceFirst
but for the last occurrence? We have "first/last" matching pairs for other methods.
👍 3
z
european law prohibits replaceLast functions
🤣 3
n
i do not understand this joke (it is a joke, no?)
z
european law isn't a joke
lol 3
l
Hey @Zac Sweers, can you explain your joke? I'm not sure we all get it, even though the irrelevancy of law regarding stdlib is already funny on its own.
z
even though the irrelevancy of law regarding stdlib is already funny on its own
😄 1
l
Okay, so there was nothing specific regarding
replaceLast
?
n
I'm still confused whether the joke is on me (because e.g. that extension function already exists), or if function name proposed by me has a secret funny meaning, or I am just too dense to understand the joke.
z
@nkiesel the joke probably has no connection with your details of your question. You took it too serious