Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In most uses cases, the same control functionality has to be added to multiple items. Defining the functionality for each item separately is a time-consuming and error-prone task. Therefore, pattern matching can be used to implement the same functionality for multiple items with just a single definition line.