FacesGroup.subgroup

FacesGroup.subgroup(condition, **kwargs)[source]

Create a subgroup based on a given condition.

Parameters:
conditionCallable[[_MemberType], bool]

A function that takes a member as input and returns True if the member should be included in the subgroup.

Returns:
G

A new group (of the same type as self) containing the members that satisfy the condition.