0

Lesson 43: Remove(index) definition

Am I right? Since index starts from zero, the following definition should be corrected: "Remove(index) removes all characters in the string after the specified index." should be changed to: "Remove(index) removes all characters in the string from the specified index."

13th Jul 2017, 8:18 PM
mj.gh
2 Respostas
+ 2
This is the official definition: "Returns a new string in which a specified number of characters in the current instance beginning at a specified position have been deleted." "startIndexType: System.Int32 The zero-based position to begin deleting characters." Disregard my previous post, I didn't realize you were just talking about SoloLearns definition. Yeah, I guess technically the way you put it makes more sense.
13th Jul 2017, 9:24 PM
Rrestoring faith
Rrestoring faith - avatar
0
Well explained
27th Jul 2017, 6:45 PM
Moemedi Lejage
Moemedi Lejage - avatar