Higher-Order Functions in Swift
source link: https://www.raywenderlich.com/23523624-higher-order-functions-in-swift
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Saving Data on Android, Second Edition – Now Updated!
Persist data on Android by storing it locally or remotely. Use modern data synchronization techniques to make your app reactive—with our newly-revised book!
This course is available as part of the raywenderlich.com Professional subscription. To learn more click here
Higher-Order Functions in Swift
Aug 31 2021 · Video Course (34 mins) · Intermediate
Learn what higher-order functions are, and how to write and use them in Swift. Expand your understanding with examples from the Swift Standard Library, the new Swift Algorithms framework, and SwiftUI.
Version
- Swift 5.3, iOS 14, Xcode 12.5
Higher-Order Functions in Swift
Learn About Function Types
4:23 FreeLearn how higher-order functions can help you level up your Swift skills, and review the function’s place in the Swift type system.
Write your first higher-order function, using a function as a parameter. Learn three ways to pass functions in as arguments.
Learn About map
7:10Learn how map, one of the most useful higher-order functions, works behind the scenes, and try out some of its more custom cousins.
There are a plethora of higher-order functions waiting for you in the Swift Standard Library and the new Swift Algorithms framework! Check out a few of them, here.
Build two custom dynamic sequences from scratch with your new higher-order function skills.
Use ViewBuilder
2:16Find out what higher-order functions are doing behind the scenes in SwiftUI by building a custom View with a @ViewBuilder.
Learn About Currying
2:25A less common type of higher-order function is one that returns a function. Learn how to break functions down with currying.
Make currying easier by writing a reusable generic currying function.
Learn how to use function composition to merge smaller functions together.
Who is this for?
This course will be most helpful to developers who have some Swift experience, but aren’t familiar with functional programming concepts, and may struggle to make the most of functions and closures in their everyday Swift code.
Covered concepts
- Functions
- Functional Programming
- Swift Type System
- Swift Algorithms
- Sequence
- ViewBuilder
- Currying
Contributors
Catie makes things for, with, and about Apple tech in collaboration with her husband, Jessy! She is inspired by everyone at...
InstructorGraphic Illustrator with a Bachelor’s Degree in Fine Arts. I am a perpetual perfection seeker with a big passion for History...
IllustratorComments
Add a rating for this content
Sign in to add a ratingAll videos. All books.
One low price.
A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!
Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.
The largest and most up-to-date collection of courses and books on iOS, Swift, Android, Kotlin, Flutter, Dart, Server-Side Swift, Unity and more!
All videos. All books. One low price.
A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!
Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalogue of 50+ books and 4,000+ videos.
- © 2021 Razeware LLC
- Made with ♥ from around the world
- 6000+ Tutorials and counting
raywenderlich.com and our partners use cookies to understand how you use our site and to serve you personalized content and ads. By continuing to use this site, you accept these cookies, our privacy policy and terms of service .
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK