Posts

Showing posts with the label single linked lists

Treehouse Intermediate Course - Part 6 (Generics 4)

Image
So it's been a few days! But I'm back for more generics! Before I begin, I'm just going to recap what I've been looking at most recently.  Start Time - 20:32 OK so before it was the general info about generics, including the use of protocols and multiple parameters. Most recently, it was about generic types in the standard library. This was basically about what is in the swift documentation and how actual quite a few of the types are generics! So a dictionary shows generics in the sense that, once defined, it has specific types that must be conformed too. Going to skim over a bit more...  Yes, some was on other ways to create arrays, optionals and also what's 'under the hood' for various bits. Generic types are used all the time including for custom data structures. OK, let's move on! Linked Lists Array - ordered set of data etc. etc. A linked list - a set of data items that are connected to one another. Each item is a NODE. Two types - sin...