4 ms·
No you can't, as you need the language to provide a few basic building blocks, such as lambdas, and the ability to pass functions as arguments.
by innguest 14y ago
No you can't, as you need the language to provide a few basic building blocks, such as lambdas, and the ability to pass functions as arguments.
- KirinDave 14y agoYou can generally approximate higher order functions in almost every OOP language. See C++ before it got lambdas, they have a pattern. See also java's anonymous inner classes, which are often used with the Runnable interface for that rule.