This commit is contained in:
2022-09-11 06:41:38 +10:00
committed by GitHub
parent 3f6540d6e5
commit e3eb38b827

View File

@@ -115,5 +115,7 @@ When indexing a compound value, you can use slice notation to manipulate it's el
var greeting = "Hello world"; var greeting = "Hello world";
print greeting[::-1]; //dlrow olleH print greeting[::-1]; //dlrow olleH
greeting[0:4] = "Goodnight"; //changes greeting to equal "Goodnight world"
``` ```