In few examples, I have seen that an object or a class extends Function1.
E.g. object Cash extends (CashProduct => String) in Hidden features of Scala
(I suppose A => B means Function1)
What it the benefit of extending a Function1?
In few examples, I have seen that an object or a class extends Function1.
E.g. object Cash extends (CashProduct => String) in Hidden features of Scala
(I suppose A => B means Function1)
What it the benefit of extending a Function1?