Chapter 7. Data modeling

This chapter covers

  • Storing values with associated keys by using dictionaries
  • Building interactive trees by using recursive custom types
  • Using intermediate representations to decode JSON incrementally
  • Decoding recursive data structures with recursive JSON decoders

Our manager is back from vacation and eager to tell the team about a poolside revelation for a new Photo Groove feature: Photo Folders. (The original name was “Photo Pholders” but Marketing said no.) As our users’ photo collections grow, they’ve been asking for ways to organize them. Folders are a tried-and-true way to offer exactly that!

To build this feature, we’ll introduce a second page to Photo Groove. It will let users navigate through a folder hierarchy, ...

Get Elm in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.