String append: Difference between revisions

m
(Added Dart)
 
(6 intermediate revisions by 5 users not shown)
Line 480:
PRINT a$
END</syntaxhighlight>
 
==={{header|uBasic/4tH}}===
<syntaxhighlight lang="qbasic">a := "Hello"
a = Join (a, " World!")
Print Show(a)</syntaxhighlight>
 
==={{header|XBasic}}===
Line 504 ⟶ 509:
print a$</syntaxhighlight>
 
 
=={{header|Binary Lambda Calculus}}==
BLC program
<pre>18 16 46 80 05 bc bc fd f6 e0 69 6f 6e</pre>
based on https://github.com/tromp/AIT/blob/master/rosetta/catstrings.lam
appends "ion" to "on" to output "onion".
 
=={{header|BQN}}==
<syntaxhighlight lang="bqn">str ← "oneTwo"
 
•Out str ∾↩ "Three"
 
str</syntaxhighlight>
{{out}}
<pre>oneTwoThree
"oneTwoThree"</pre>
 
=={{header|Bracmat}}==
Line 737 ⟶ 758:
 
=={{header|Elena}}==
ELENA 46.x :
<syntaxhighlight lang="elena">import extensions'text;
import extensions'text;
 
public program()
{
var s := StringWriter.load("Hello");
s.append:(" World");
console.printLine:writeLine(s).readChar()
}</syntaxhighlight>
 
Line 1,885 ⟶ 1,905:
 
=={{header|Wren}}==
<syntaxhighlight lang="javascriptwren">var s = "Hello, "
s = s + "world!"
System.print(s)</syntaxhighlight>
56

edits