On 24/08/2022 09:42, Alessio Stalla wrote:
Function is a convenient interface for cases when a more specific interface does not exist. But any Java interface with a single abstract method can be the target of a lambda expression:
[...] Lambda is just syntax sugar for interfaces with a single method, [...].
You're absolutely right. I'd forgotten all this.
Vibhu