4 ms·
Can you do LAMBDA(...)(x)? That would make it an anonymous function. Of course the real fun starts when you can do: =LAMBDA(f, LAMBDA(x, f(x(x)))(LAMBDA(x
by contravariant 6y ago
Can you do LAMBDA(...)(x)? That would make it an anonymous function.
Of course the real fun starts when you can do:
=LAMBDA(f, LAMBDA(x, f(x(x)))(LAMBDA(x, f(x(x)))))
- ripley12 6y agoYou can, but you can't (currently?) do =A1(x) where A1 is a LAMBDA function. I think LAMBDA(...)(x) is only useful for testing/development, but maybe I'm missing some good use cases.
- contravariant 6y agoIf need be you could always just define a lisp interpreter.