findDeep

inline fun <T> WithChildren<*>.findDeep(crossinline predicate: (T) -> Boolean = { true }): T?

Finds the first child of type T in the documentation tree, starting from this root.

Return

the first child of type T that matches the predicate, if any

Parameters

predicate

optional predicate to filter the children of type T