self.enumerateChildNodesWithName(spriteName) {
node, stop in
// Do something with node.
}
This is an example of a bit of SpriteKit Swift code I was looking at.
It looks like the equivalent of C#'s lambda expressions, but I am not sure.
The one part I wanted to find out about is the stop in
part, what is it?
I tried finding info in Swift docs, but stop in
is too generic a term and couldn't find any info.
What is stop in
? What is it doing?