addGroup

Returns a new Feature associated with the specified group.

Updates the feature's group field to the specified group name. If the feature already belongs to another group, it will be moved to the new group. This maintains immutability by returning a new instance.

Example:

val groupedFeature = feature.addGroup("beta-users")

Return

a new Feature associated with the group

Parameters

groupName

the name of the group to assign