Posts

Showing posts with the label return closure

Bob Lee Course Part 16 (lectures 26 to 28)

Image
Back to Bob! Now, I have genuinely been ill for the last few days - headaches, sore throat, cold...flu but really overwhelming. Not so bad to be off work but pretty horrible. Anyway, I have some time at last! I forgot to post the first (proper) Xcode project, so that's now several days out of sync. Not to worry. I will add to that later if I can! Now, the plan is to continue with Bob's Intermediate course, with the possibility of switching to Sandra's after chapter 3. Realistically, that's 2 main entries of the content with one consolidation one. Let's see how it goes! Start Time - 17:15 CHAPTER 3! Bob makes the point that people usually struggle with closures. Good - because I always have! Introduction to Closures (1) So the key point with closures is that they are essentially functions without using the 'func' keyword. You can also create a variable and assign it to a function, then it has the same functionality. Cool! var addClosure: ( Int...