holgerbrandl
11/10/2017, 9:09 AMtypealias 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.