Do you know if it possible to use typealiases when...
# getting-started
h
Do you know if it possible to use typealiases when defining function literals? Like in
Copy code
typealias ColumnSelector = ColNames.() -> List<Boolean?>

fun ColumnSelector.AND(other: ColumnSelector): ColumnSelector = fun ColNames.(): List<Boolean?> {
    return this.this@AND().zip(this.other()).map { nullAwareAnd(it.first, it.second) }
}

fun ColumnSelector.FOO(other: ColumnSelector): ColumnSelector =  object : ColumnSelector {
    return this.this@AND().zip(this.other()).map { nullAwareAnd(it.first, it.second) }
}
In FOO I’ve tried to rewrite AND using the typealias but all code is red then.