Skip to content

Instantly share code, notes, and snippets.

@humblerookie
Last active July 17, 2020 10:18
Embed
What would you like to do?
SAM Interfaces in Kotlin 1.4
//fun keyword is allowed on interfaces
fun interface Parser {
fun parse(value: String): ParsedOutput
}
data class ParsedOutput(val header: String, val body: String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment