withUpperBound

List containing declarations that have at least one upper bound satisfying the provided predicate.

Return

A list containing declarations with at least one upper bound satisfying the predicate.

Parameters

predicate

A function that defines the condition to be met by a upper bound declaration.