String concatenation: Difference between revisions

Content deleted Content added
Add Seed7 example
Line 735:
puts s1
s1 << " another" # append to s1</lang>
 
=={{header|Scala}}==
<lang scala>
val s = "hello"
val s2 = s + " world"
println(s2)
</lang>
 
=={{header|Sather}}==
Line 752 ⟶ 745:
end;
end;</lang>
 
=={{header|Scala}}==
<lang scala>
val s = "hello"
val s2 = s + " world"
println(s2)
</lang>
 
=={{header|Scheme}}==
Line 760:
(display s1)
(newline)</lang>
 
=={{header|Seed7}}==
<lang seed7>$ include "seed7_05.s7i";
const proc: main is func
local
var string: s is "hello";
var string: s2 is "";
begin
writeln(s <& " world");
s2 := s & " world";
writeln(s2);
end func;</lang>
 
Output:
<pre>
hello world
hello world
</pre>
 
=={{header|Slate}}==