Skip to content

Concept: recursion #692

Open
Open
@jiegillet

Description

@jiegillet

Design

Goal

The Goal is to learn to use recursion and tail call recursion

Learning objectives

Students should be able to

  • understand that it's a fundamental pattern in FP
  • understand that many core functions are built with recursion
  • use recursive functions
  • write a recursive function
  • understand what tail-call recursion is
  • understand that Elm optimizes tail-call recursive functions
  • write a tail-call recursive function

Out of scope

Nothing

Concepts

The concept this exercise unlocks is:

  • recursion

Prerequisites

  • lists
  • pattern matching

Analyzer

  • check that tail call recursion was implemented correctly
  • TBD depending on the exercise

Comments

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions