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

@@ -10,9 +10,11 @@ fun main():int {
println(m[3])
m.set(3,4)
m.set(4,20)
m[6] = 30
println(m[1])
println(m[4])
println(m[2])
println(m[6])
println(m[3])
return 0
}