52 weeks swift enumerations
2 Weeks of Swift_ Episode 8-Enumerations
00:00 Intro
03:30 Using .dot syntax with enum
08:29 Associated values for enumeration
13:45 Recursive enumerations
Okay, so I'm live here with 52 weeks of Swift and getting into a numeration is today, still going through the Swift language guide. And I'm going to start off with sharing some, some code here on a numeration syntax. To start with, if we go and paste some of this in, here we go, you can see that the num, right here says that this is really the flavor of what it looks like. And if we wanted to build this out into exactly sort of workable code, you can see here that make this thing, have the ability to do case statements. And then what's great about this is that I can, you know, essentially select which one of these fits the case that I that I need. So let's go ahead and run this. Here we go, we see that this is actually working code. And so you can basically use this as something that can really be related values, or typesafe. Way to deal with things in Swift. And in particular, one of the things that I'm going to do is I'm going to go ahead and take a look at this planet. We'll go next year. And take a look at this. And we see that in this case, I say, case Mercury, Venus, Earth, Mars, Jupiter, Uranus, Neptune, there we go. And so how would I actually use this
If you enjoyed this video, here are additional resources to look at:
Coursera + Duke Specialization: Building Cloud Computing Solutions at Scale Specialization: https://www.coursera.org/specializations/building-cloud-computing-solutions-at-scale
O'Reilly Book: Practical MLOps: https://www.amazon.com/Practical-MLOps-Operationalizing-Machine-Learning/dp/1098103017
O'Reilly Book: Python for DevOps: https://www.amazon.com/gp/product/B082P97LDW/
Pragmatic AI: An Introduction to Cloud-based Machine Learning: https://www.amazon.com/gp/product/B07FB8F8QP/
Pragmatic AI Labs Book: Python Command-Line Tools: https://www.amazon.com/gp/product/B0855FSFYZ
Pragmatic AI Labs Book: Cloud Computing for Data Analysis: https://www.amazon.com/gp/product/B0992BN7W8
Pragmatic AI Book: Minimal Python: https://www.amazon.com/gp/product/B0855NSRR7
Pragmatic AI Book: Testing in Python: https://www.amazon.com/gp/product/B0855NSRR7
Subscribe to Pragmatic AI Labs YouTube Channel: https://www.youtube.com/channel/UCNDfiL0D1LUeKWAkRE1xO5Q
View content on noahgift.com: https://noahgift.com/
View content on Pragmatic AI Labs Website: https://paiml.com/