Higher-order functions: Difference between revisions

Content added Content deleted
No edit summary
Line 340: Line 340:
var result = first(second);
var result = first(second);
result = first(function() { return "third"; });
result = first(function() { return "third"; });

==[[MAXScript]]==
[[Category:MAXScript]]
fn second =
(
print "Second"
)
fn first func =
(
func()
)
first second


==[[Pascal]]==
==[[Pascal]]==