Elixir: Lists, Default Arguments, Guards, Multiple Clause Functions, Pattern Matching, Tuples, Pipe, Strings, Recursion, Maps, Module Attributes

January 23, 2026 (4 weeks and 2 days ago)
DANA 325 A B D G E F C

Objectives

  • Exercism: Language List

    Lists

    1 point
  • Exercism: Guessing Game

    Default Arguments, Guards, Multiple Clause Functions

    1 point
  • Exercism: Kitchen Calculator

    Pattern Matching, Tuples

    1 point
  • Exercism: High School Sweetheart

    Pipe Operator, Strings

    1 point
  • Exercism: Recursion

    Bird Count

    1 point
  • Exercism: High Score

    Maps, Module Attributes as Constants

    1 point

Today we will continue the Elixir track on Exercism. As told last lecture, I am at a conference in Oklahoma City. Please come to class as usual, sit in the correct seat and work with your partner on the next set of exercises. This time we will cover:

  • Lists, Default Arguments, Guards, Multiple Clause Functions, Pattern Matching, Tuples, Pipe Operator, Strings, Recursion, Maps, and Module Attributes

By now you should be establishing a convenient workflow:

  1. Download exercism exercise with the terminal command
  2. Open the Readme via the Markdown Previewer (VsCode Plugin) and lib/<name_of_exercise.ex>
  3. Read the intro and instructions carefully
  4. Solve the challenge
  5. Test the solution until correct (exercism test)
  6. Submit the solution (exercism submit)
  7. Check the exercism website for additional AI feedback
  8. Look at a popular community solutions (and compare your work)

You may also want to save the folder you are working in as a workspace in VSCode.

Tip For the exercism exercises I highly recommend to disable Copilopt or other integrated AI tools in VS code as they tend to suggest incorrect lines of code. Since you don't know Elixir yet, It will be very difficult to verify and correct auto-suggested code.