Higher-order functions: Difference between revisions

Content added Content deleted
(→‎{{header|Prolog}}: Generalize solution to work with any Prolog system)
Line 1,959: Line 1,959:
# 1: Hello!
# 1: Hello!
# 2: Hello!</lang>
# 2: Hello!</lang>

=={{header|Phix}}==
Copy of [[Higher-order_functions#Euphoria|Euphoria]]
<lang Phix>procedure use(integer fi, integer a, integer b)
print(1,call_func(fi,{a,b}))
end procedure
function add(integer a, integer b)
return a + b
end function
use(routine_id("add"),23,45)</lang>
{{out}}
<pre>
68
</pre>


=={{header|PHP}}==
=={{header|PHP}}==