12 lines
330 B
Plaintext
12 lines
330 B
Plaintext
text original = "Yellow world"
|
|
text ref = original # copying the reference
|
|
text copied = *original # copying the content
|
|
original[0] = "H" # texts are indexable and mutable
|
|
original[5] = ","
|
|
ref.append("!") # texts are coercible and growable
|
|
copied += "?"
|
|
^|
|
|
| original == ref == "Hello, world!"
|
|
| copied == "Yellow world?"
|
|
|^
|