minus

operator fun <G : GroupEntity<E>, E : Node> G.minus(child: E): G

GroupEntity - Node => GroupEntity
Returns this entity without child among its children — a child leaves the group by the group being rebuilt without it.

The removed child is found by identity (===), never by structural equality — two geometrically identical children are distinct members. The result returns through the typed copy hook, so it is the receiver's own class with its facts carried. When child is not among the children the receiver itself is returned (===), unchanged — removing an absent child is a no-op, so no call needs a membership pre-check. group -= child spells remove-and-rebind at a var site.

Receiver

The entity to remove child from.

Return

The rebuilt entity without child, as the receiver's class — or this entity itself when child is not a member.

Parameters

child

The child to remove, matched by identity.

Type Parameters

G

The receiver's type, preserved in the result.

E

The children's type.