selectedForeach

Calls a function for each selected child.

Note that the selection cannot be modified from within this function.

Parameters

func

the function to call for each selected child