Higher-order functions: Difference between revisions
→Insitux: inclusion
(→Insitux: inclusion) |
|||
Line 1,696:
demonstrate multiplication as "Mul";
end the story.</syntaxhighlight>
=={{Header|Insitux}}==
{{Trans|Clojure}}
<syntaxhighlight lang="insitux">
(function prepend-hello s
(str "Hello, " s))
(function modify-string f s
(f s))
(modify-string prepend-hello "World!")
</syntaxhighlight>
{{out}}
<pre>
Hello, World!
</pre>
=={{header|J}}==
|