Jump to content

Higher-order functions: Difference between revisions

no edit summary
m (→‎{{header|REXX}}: removed STYLE from the PRE html tag.)
No edit summary
Line 815:
3> tests:first(fun() -> anonymous_function end).
anonymous_function</lang>
 
=={{header|ERRE}}==
ERRE function are limited to one-line FUNCTION, but you can write:
<lang ERRE>
PROGRAM FUNC_PASS
 
FUNCTION ONE(X,Y)
ONE=(X+Y)^2
END FUNCTION
 
FUNCTION TWO(X,Y)
TWO=ONE(X,Y)+1
END FUNCTION
 
BEGIN
PRINT(TWO(10,11))
END PROGRAM
</lang>
Answer is 442
 
=={{header|Euler Math Toolbox}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.