Higher-order functions: Difference between revisions

Content deleted Content added
Peter (talk | contribs)
added Fantom example
→‎{{header|Euphoria}}: Euphoria example added
Line 544: Line 544:
3> tests:first(fun() -> anonymous_function end).
3> tests:first(fun() -> anonymous_function end).
anonymous_function</lang>
anonymous_function</lang>

=={{header|Euphoria}}==
<lang euphoria>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>


=={{header|Factor}}==
=={{header|Factor}}==