Higher-order functions: Difference between revisions

Removed the PHP part as I seem to not have understood the topic
(Added PHP part)
(Removed the PHP part as I seem to not have understood the topic)
Line 201:
 
result = first(lambda: "second")
 
 
==[[PHP]]==
[[Category:PHP]]
 
'''Interpreter:''' [[PHP]] 4.x & 5.x
 
<?php
 
function first ()
{
 
return "foo";
 
}
 
function second ($bar)
{
echo $bar;
return;
 
}
 
second (first ());
 
?>