❓ What is Kotlin SAM and fun interface?
✅ fun interface is Kotlin definition of Java functional interface. Kotlin can sugarize any Java Functional interfaces (interfaces with only one abstract member) into lambdas to leverage interoperability. This process is called SAM Conversion.
⚡️ Examples: Comparator, ReadOnlyProperty, PropertyDelegateProvider interfaces