holgerbrandl
11/10/2017, 10:32 AM/** Select or remove columns by predicate.
Example:
foo.select2{ it is IntCol }
foo.select2{ it.name.startsWith("bar") }
foo.remove{ it.name.startsWith("bar") }
*/
fun select2(colSelector: (DataCol) -> Boolean) = select(cols.filter(colSelector).map { it.name })
fun remove2(colSelector: (DataCol) -> Boolean) = select(cols.filterNot(colSelector).map { it.name })
In the example remove2 should share/inherit the docs of select2.