I've read the apple Everyone Can Code stuff, and am going through Programming in Swift on Raywenderlich.com, but I'm really getting tripped up by closures. I wish I could just skip them, work on my apps, and then gradually make it cleaner by incorporating closures, but so many things depend on closures to work I have to understand this NOW.
I get that they are little baby functions. I get that they can bring out a value from a context that has otherwise ended. But that's it. I can't seem to pull them back apart. Its so clean and nice as they go through how it works, but then we get to trailing closures and using them in collections and I'm just lost.
Is there another place I could find a better explanation of closures? The way it's being explained isn't making sense to me.
I get that they are little baby functions. I get that they can bring out a value from a context that has otherwise ended. But that's it. I can't seem to pull them back apart. Its so clean and nice as they go through how it works, but then we get to trailing closures and using them in collections and I'm just lost.
Is there another place I could find a better explanation of closures? The way it's being explained isn't making sense to me.