Copy a string: Difference between revisions

Content deleted Content added
Thundergnat (talk | contribs)
m →‎{{header|Perl 6}}: update to ease automated testing
Line 817: Line 817:


=={{header|I}}==
=={{header|I}}==
<lang i>//Text is mutable.
<lang i>//Strings are immutable in 'i'.
software {
software {
var s = "Hello"
a = "Hello World"
b = a //This copies the string.
var c = copy(s)
print(c)
a += "s"
}</lang>
print(a)
print(b)
}
</lang>


=={{header|Icon}} and {{header|Unicon}}==
=={{header|Icon}} and {{header|Unicon}}==