How to Filter, Sort, and Map in Swift | Swift Basics #16

  Рет қаралды 5,793

Swiftful Thinking

Swiftful Thinking

Күн бұрын

Learn the essential concepts of filtering, sorting, and mapping in Swift with this comprehensive tutorial! Discover how to manipulate arrays and collections using powerful methods like filter, sort, and map. Master the art of applying conditions, sorting elements, and transforming data in your code. Gain a deep understanding of functional programming principles and how they can enhance your Swift development. Start your journey to becoming a proficient Swift developer today and unlock the full potential of filter, sort, and map in your projects!
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-thinking.com
DISCORD: / discord
GITHUB: github.com/SwiftfulThinking/
SAY THANKS: www.buymeacoffee.com/nicksarno
00:00 FilterSortMap
00:00 Intro
01:51 Welcome back!
03:15 Creating a data model
04:39 Filter
09:28 Sort
13:55 Map
15:43 Wrapping up

Пікірлер: 18
@merakshot9277
@merakshot9277 7 ай бұрын
👏🏻👏🏻👏🏻👏🏻 Thanks a lot Nick Sarno, that was an amazing video i love your videos, i have started SwiftUI since June 10 with your courses, and now i'm grabbing some swift (java background helping me little bit here with swift) so that i will build a solid journey in IOS Development, thanks again and thanks for everyone that is pushing Nick Sarno to teach us.
@pangea6919
@pangea6919 Жыл бұрын
Nice one Nick, I finally learned what map means, thanks.
@absar66
@absar66 11 ай бұрын
Great series, many thanks…one request, please add a tutorial on “do/try/catch/throw” for beginners..I know you have a detailed video on this subject under “Concurrency” playlist but it would great if you introduce those concepts here in your unique simple-way which would make this Beginner’s playlist complete 🙏🏻
@SwiftfulThinking
@SwiftfulThinking 11 ай бұрын
The video in the Concurrency playlist that covers do/try/catch is beginner level. It’s the later videos in that series that get harder!
@mmosmans
@mmosmans Жыл бұрын
Awesome, thanks!
@jameskayten6563
@jameskayten6563 9 ай бұрын
When you delete and or change lines of code it makes it difficult to document the process. I have to make note of the steps in the process so I can refer to the lesson in future (or in just a few more minutes). When I rewatch and listen, it's confusing as my playground won't match up to the vid and I've to spend time distracted trying to find the correct space. You''re a natural teacher Nick. I've yet to stick with anyone as long as you! I do notice and appreciate the level of effort and production value you're creating!
@911lalala
@911lalala 11 ай бұрын
great videos!!!
@mke579
@mke579 Жыл бұрын
Nick the king! But when we will see some CloudKit Advanced operations, image containers, user feeds, dynamic data (favorites, likes, etc.), compression and more related to server-side on CloudKit? Also operations between Public, Share and Private Databases, subscription based accounts (premium, private app membership payment before use, etc.) I would like to see some hardcore skills from you :D
@zlatkoiliev8927
@zlatkoiliev8927 11 ай бұрын
And also the new SwitfData!
@sambit6500
@sambit6500 11 ай бұрын
Awesome 👏
@arrowfunction3200
@arrowfunction3200 11 ай бұрын
you are genius
@yt-1161
@yt-1161 3 ай бұрын
what is that __lldb_expr in the console, I get the same output @12:22
@jameskayten6563
@jameskayten6563 10 ай бұрын
I can't understand where 'user' exists in the code. There's no 'user' in the allUsers array. Where is the variable established? "Cannot find 'user' in scope"
@Mike_bbbbb
@Mike_bbbbb 9 ай бұрын
“user” is referring to each element that’s being looped; it doesn’t really exist in the prior code. You can use any word you want to refer to the element, like “user,” “i”, whatever. So like: for i in array1 return i. The “i” is an arbitrary name referencing each item (whatever type it might be) in array1. Hope that helps. I’m a beginner, too, so I can’t explain things like Nick could, and hopefully I'm not steering you wrong.
@jameskayten6563
@jameskayten6563 9 ай бұрын
Thanks much! That clears things up nicely. @@Mike_bbbbb
@zlatkoiliev8927
@zlatkoiliev8927 Жыл бұрын
Oh… so Samantha is “definitely” a premium, and Emily isn’t?!? Does she know about that? 😂
@SwiftfulThinking
@SwiftfulThinking Жыл бұрын
Ohh I made sure she knows don’t worry 😎
What is a Protocol in Swift and SwiftUI View protocol | Swift Basics #17
9:47
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 111 М.
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 23 МЛН
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 67 МЛН
How to use Structs in Swift | Swift Basics #9
30:24
Swiftful Thinking
Рет қаралды 10 М.
contains, forEach, sorted
18:06
Stewart Lynch
Рет қаралды 2,1 М.
I Finally Got a Tesla Cybertruck and It Scares the Crap Out of Me
12:42
How to use Lazy in Swift
9:56
Sean Allen
Рет қаралды 38 М.
Функциональный кодинг на Swift
13:50
ИЗИ DEV
Рет қаралды 6 М.
How to use Access Control (Private vs Public) | Swift Basics #12
18:59
Swiftful Thinking
Рет қаралды 6 М.
3 MISTAKES to avoid when using Async / Await in Swift 😌
4:41
Vincent Pradeilles
Рет қаралды 10 М.
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 23 МЛН