I can apply a function to all elements of a selection like in
I can also apply a command to a range of childnodes like in
But what I want is to combine the two. Unfortunately it is not clear to me how I can apply a function to such a slice range. Can somebody help me?