Mark
05/13/2021, 2:40 PMfun interface
as a verb when the function is invoke
? Or maybe as a noun like here:
fun interface ItemSelector {
operator fun invoke(items: List<String>): String
}
val selectItem = object : ItemSelector { ... }
val itemSelected = selectItem( ... )
1. Verb
2. NounPaul Griffith
05/13/2021, 2:45 PMfun interface operator fun invoke
, I would probably just use a typealias insteadPaul Griffith
05/13/2021, 2:45 PMPaul Griffith
05/13/2021, 2:54 PMMark
05/13/2021, 2:55 PMPaul Griffith
05/13/2021, 3:07 PMMark
05/13/2021, 3:10 PMShawn
05/13/2021, 5:15 PM