Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Pattern Matching, Lists, and Recursion in Haskell

via CodeSignal

Overview

Learn how Haskell structures data and replaces loops. Use pattern matching, lists, strings, tuples, safe access with `Maybe`, list comprehensions, and recursion, including accumulator-style recursion.

Syllabus

  • Unit 1: Pattern Matching on Values
    • Spelling Out Digits by Cases
    • Spotting Vowels with Pattern Matching
  • Unit 2: Lists and String Sequences
    • Growing Lists of Numbers
    • The Secret Identity of Strings
  • Unit 3: Safe List Operations
    • Querying and Slicing Lists Safely
    • Reading the First Item Safely
  • Unit 4: Grouping Data with Tuples
    • Pairing a Name and Age
    • Packing and Unpacking Number Pairs
  • Unit 5: Haskell List Comprehensions
    • Transforming and Filtering with Comprehensions
    • Pairing Lists into Tuples
  • Unit 6: Recursion Over Lists
    • Adding Up a List
    • Counting Items One by One
    • Searching a List with Recursion
  • Unit 7: Recursion with Accumulators
    • Summing with a Running Total
    • Building a List in Reverse
    • Counting Items the Accumulator Way

Reviews

Start your review of Pattern Matching, Lists, and Recursion in Haskell

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.