Not sure if it’s actually build tool related, but:...
# build-tools
h
Not sure if it’s actually build tool related, but: Can I share the api doc between methods when, i.e. define it once and reuse it for another method. Example
Copy code
/** 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
.