News for hackers. Stuff that matters.
Re:Lisp, Smalltalk, and the power of symmetry (2014) by dreamcompiler on Monday May 30, 2022 @12:58AM (#31555620)
Another power of Lisp is that it can accept functions as first-class arguments and produce functions as returned values.

This means you can do obvious things like sort an array given a comparison function, or produce a generator from a static array. But it also means you can convert one function into another kind of function. Functional analysis calls these operators. Differentiation is an operator, as is integration, as is the Fourier transform, as is function composition. Many such things don't even need macros, but macros can help.

There are no comments on this comment yet.