Function definition: Difference between revisions
no edit summary
WebmanDman (talk | contribs) |
No edit summary |
||
Line 1,525:
"Return the product of X and Y."
(* x y))</syntaxhighlight>
=={{header|EMal}}==
<syntaxhighlight lang="emal">
fun multiply = var by var a, var b
return a * b
end
writeLine(multiply(6, 7))
writeLine(multiply("can", 2))
</syntaxhighlight>
{{out}}
<pre>
42
cancan
</pre>
=={{header|Erlang}}==
|