moved back to old acc
[vox.git] / examples / substr.vx
blob1ad677123cef3f07569c714e703f44fb0b68cc24
2 local str, str2, str3, result
3 local pos
4 str = "We think in generalities, but we live in details."
5 str2 = str.substr(12, 12)
6 pos = str.indexof("live")
7 str3 = str.substr(pos)
8 result = str2 + " " + str3
9 println("result: ", result)
10 assert(result == "generalities live in details.")