with Name
List containing declarations with name.
Return
A list containing declarations with the specified names (or any name if names is empty).
Parameters
names
The name(s) to include.
List containing declarations that have a name matching the provided predicate.
Return
A list containing declarations with the name matching the provided predicate.
Parameters
predicate
A function that defines the condition to be met by a declaration name.