Anonymous user
Higher-order functions: Difference between revisions
→{{header|Dyalect}}
(Added Dyalect programming language) |
|||
Line 882:
print("f=mul, f(\(a), \(b)) = \(call((x, y) => x * y, a, b))")
print("f=div, f(\(a), \(b)) = \(call((x, y) => x / y, a, b))")</lang>
{{out}}
<pre>f=add, f(6, 2) = 8
f=mul, f(6, 2) = 12
f=div, f(6, 2) = 3</pre>
=={{header|E}}==
|