String prepend: Difference between revisions

no edit summary
(add RPL)
No edit summary
Line 734:
(buffer-string)))
;; => "foobar"</syntaxhighlight>
 
=={{header|EMal}}==
<syntaxhighlight lang="emal">
text greeting = "world"
^|basic concatenation|^
writeLine("hello " + greeting)
^|changing the text in place|^
writeLine(greeting.insert(0, "hello "))
writeLine(greeting)
</syntaxhighlight>
{{out}}
<pre>
hello world
hello world
hello world
</pre>
 
=={{header|Erlang}}==
226

edits