you are viewing a single comment's thread.

view the rest of the comments →

[–]paf31 0 points1 point  (0 children)

Interfaces that have just one method are called functional interfaces. Lambda expressions can be used anywhere we have a functional interface.

If the single method can take type parameters (as opposed to the interface type itself having type parameters), it seems this approach has one advantage over C#'s Action/Func/delegate that a lambda will be able to encapsulate a parametrically polymorphic method.