Join Slack
Powered by
yeah, I've also implemented the operator on my own...
# stdlib
k
kevinmost
12/03/2017, 12:13 AM
yeah, I've also implemented the operator on my own before, literally just delegating through to the
substring
function (I guess now there's
slice
which would be better). Is there a reason that it's not already implemented as an operator? It seems very expressive to me what
str[0..3]
would do
5
Views
Open in Slack
Previous
Next