The Phonebook App

See the phonebook app in action.

Patterns implementation

Before completing the pattern matching, it’s possible to add two routines to categorize, and hence simplify the printing output.

  • The first of these functions, registryAction, conveys a message that signals the completion of a write action. It’s suitable for the create and delete pattern primitives.
  • The second, showRegistryData, prints formatted registry contents, and works well with the all and search pattern primitives, which are extensions of the phonebook’s read faculty.

Get hands-on with 1200+ tech skills courses.