Anonymous function: Difference between revisions

Content deleted Content added
Citation bot (talk | contribs)
Add: year, date. | Use this bot. Report bugs. | Suggested by Abductive | Category:Functional programming | #UCB_Category 12/67
Maxima: lang="maxima"
Line 1,273:
===Maxima===
In [[Maxima (software)|Maxima]] anonymous functions are defined using the syntax <code>lambda(argument-list,expression)</code>,
<syntaxhighlight lang="textmaxima" highlight="1,4">
f: lambda([x],x*x); f(8);
64
 
lambda([x,y],x+y)(5,6);
11
</syntaxhighlight>