Higher-order functions: Difference between revisions
Content added Content deleted
(→Insitux: inclusion) |
|||
Line 1,696: | Line 1,696: | ||
demonstrate multiplication as "Mul"; |
demonstrate multiplication as "Mul"; |
||
end the story.</syntaxhighlight> |
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}}== |
=={{header|J}}== |