Added the []= overloadable operator and implemented it for vector, map, and string

This commit is contained in:
Nathan Braswell
2015-06-27 11:46:31 -04:00
parent b18c18ec30
commit dacfee6d22
13 changed files with 71 additions and 1 deletions

View File

@@ -16,6 +16,10 @@ fun main(): int {
var newWay = string::string("new way!")
io::println(newWay)
io::println(newWay[5])
newWay.set(1, 'o')
newWay[5] = 'i'
newWay[6] = 'n'
io::println(newWay)
return 0;
}