withConstructor

List containing declarations whose at least one constructor matches the given predicate.

Return

A list containing declarations with the specified constructor(s).

Parameters

predicate

The predicate function to determine if a declaration constructor satisfies a condition.