Higher-order functions: Difference between revisions

No edit summary
Line 2,784:
=={{header|ZX Spectrum Basic}}==
{{trans|BBC_BASIC}}
"\#168" represent theInput "FN " token. Input this token first, then enclose it in double quotation marks.
<lang zxbasic>10 DEF FN f(f$,x,y)=VAL ("\#168FN "+f$+"("+STR$ (x)+","+STR$ (y)+")")
20 DEF FN n(x,y)=(x+y)^2
30 PRINT FN f("n",10,11)</lang>
672

edits