Summary: Recursion, Pattern Matching, and Property Testing

Review what we’ve learned in this chapter.

We'll cover the following
  • Recursion is a construct defined by functions calling themselves. It presents a great alternative to traditional iteration through control structure for functional programming.

  • Pattern matching is, in functional languages like Haskell, part and parcel of many computational operations. It’s a means of comparing a sequence against a set of patterns and can be used as a better version of the switch statement in PHP.

Get hands-on with 1200+ tech skills courses.