Jump to content

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}}==
112

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.