پیشنهاد فرادرس

آشنایی با توابع مرتبه بالاتر در سوئیفت

دسته بندی ها: آموزش های LinkedIn ، آموزش Swift

در این دوره با یادگیری توابع مرتبه بالاتر بر زبان سوئیفت مسلط می شوید. در این دوره با توابع مرتبه بالاتر در سوئیفت، تعریف آنها و نحوه استفاده از آنها آشنا می شوید. همچنین به بررسی اهمیت توابع مرتبه بالاتر و مبانی closures و توابع می پردازیم. در مورد انتقال توابع، بهینه سازی closures، توابع مرتبه بالاتر در رشته ها و موارد دیگر خواهید آموخت.

سرفصل:

  • معرفی دوره
  • درک توابع مرتبه بالاتر
  • closures و توابع
  • انواع closures و توابع
  • Sort
  • Sorted
  • Foreach
  • Map
  • Filter
  • CompactMap
  • FlatMap
  • Reduce
  • انتقال توابع
  • بهینه سازی Closure
  • و غیره
آیا این نوشته را دوست داشتید؟
Learning Higher-Order Functions with Swift Publisher:Linkedin Author:Bear Cahill Duration:1h 6m 46s Level:Advanced

Boost your Swift skills by adding higher-order functions to your coding toolkit. Explore the concepts behind higher-order functions like map and filter so you know when to apply each one.
Released: : November 29, 2018
By taking the time to truly grasp higher-order functions, you'll go from merely understanding the Swift language to mastering it. In this course, Bear Cahill shines a spotlight on higher-order functions in Swift, exploring what they are and how to use them. Bear starts by discussing the importance of higher-order functions and the basics of closures and functions as a basis for the rest of the course. He then covers a variety of higher-order functions—including sort, reduce, and compactMap—with a breakdown of the concepts behind each one (so you know when best to apply them). Learn about passing functions, closure optimizations, higher-order functions on strings, and more.
Introduction
Understanding higher-order functions
What you should know
1. Closures and Functions
What are closures?
Functions are closures
Closures and function types
Passing closures/functions as parameters
Type aliases for types
2. Basic Higher-Order Functions
Higher-order functions
Sort
Sorted
Foreach
3. Powerful Higher-Order Functions
Map
Filter
CompactMap
FlatMap
Reduce
Other higher-order functions
4. Using Higher Order Functions
Passing functions
Closure optimizations
Chaining higher-order functions
Higher-order functions on sets
Higher-order functions on dictionaries
Higher-order functions on strings
Conclusion
Next steps

پیشنهاد فرادرس