Getters and Key Paths

Video #8 • Mar 19, 2018 • Members Only

Key paths aren’t just for setting. They also assist in getting values inside nested structures in a composable way. This can be powerful, allowing us to make the Swift standard library more expressive with no boilerplate.

Previous video
Getters and Key Paths
Next video
Locked

Unlock This Video

Our Free plan includes 1 members only video of your choice, plus weekly updates from our newsletter.

Sign in with GitHub

Introduction

We’ve spent the last two episodes diving deep into the world of functional setters and we’ve seen how they allow us to manipulate large data structures with precision and composition. This is only half of the picture! What about getters? Let’s explore how we access data from our structures, explore how getters compose, and see how key paths may further aid us along the way!

Properties


References

Downloads

Get started with our free plan

Our free plan includes 1 members only episode of your choice, access to 75 free episodes with transcripts and code samples, and weekly updates from our newsletter.

View plans and pricing