Jump to content

String append: Difference between revisions

m
(→‎{{header|Swift}}: Added the String.extend() method)
Line 521:
zkl strings are immutable, but byte blobs are mutable.
<lang zkl>var s="foo";
s+="bar"; //-->new string "foobar"
s.append("bar"); //-->new string "foobar", same as above
 
s=Data(0,0Void,"foo");
s.append("bar"); // or s+="bar"
s.text; //-->"foobar"</lang>
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.