WWDC23: Generalize APIs with parameter packs | Apple

Published: 17 May 2024
on channel: Apple Developer
1,997
27

Swift parameter packs are a powerful tool to expand what is possible in your generic code while also enabling you to simplify common generic patterns. We’ll show you how to abstract over types as well as the number of arguments in generic code and simplify common generic patterns to avoid overloads.

To get the most out of this session, we recommend first checking out “Embrace Swift generics" from WWDC22.

00:00 - Introduction
00:52 - What parameter packs solve
04:08 - How to read parameter packs
12:06 - Using parameter packs
17:22 - Wrap up

More Apple Developer resources:
Video sessions: https://apple.co/VideoSessions
Documentation: https://apple.co/DeveloperDocs
Forums: https://apple.co/DeveloperForums
App: https://apple.co/DeveloperApp


Watch video WWDC23: Generalize APIs with parameter packs | Apple online without registration, duration hours minute second in high quality. This video was added by user Apple Developer 17 May 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,997 once and liked it 27 people.