zlox/samples/indices.lox

4 lines
194 B
Plaintext
Raw Normal View History

2024-08-31 22:07:12 +02:00
var alphabet = "abcdefghijklmnopqrstuvwxyz"; var X = alphabet; print "hello " + X[3] + X[0] + X[10];
var s = " "; s[0] = "d"; s[1] = "a"; s[2] = "k"; var hey = "hello " + s + "!"; print hey;