What does [index..].to_string() mean?

What does the following code mean[index..].to_string()? I have seen the double dot operator in relation to ranges. What is it trying to do here?
Thanks

The [index..] part means "subslice starting from index until the end". Then, the function is called on the output of the index operation.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.