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>// |
<lang i>//Strings are immutable in 'i'. |
||
software { |
software { |
||
a = "Hello World" |
|||
b = a //This copies the string. |
|||
var c = copy(s) |
|||
⚫ | |||
a += "s" |
|||
⚫ | |||
⚫ | |||
print(b) |
|||
} |
|||
⚫ | |||
=={{header|Icon}} and {{header|Unicon}}== |
=={{header|Icon}} and {{header|Unicon}}== |