Elixir List Recursion — Tentamen Software Testing Blog

Image for post
Image for post

TL;DR

Recursion

In computer science, recursion is a method of solving a problem where the solution depends on solutions to smaller instances of the same problem [ wikipedia].

That means there must be a mechanism (a function) in Elixir that helps us to divide any list to smaller chunks so we could apply the same function on those chunks. We are done when we reach an empty list.

Head and Tail

Remember

Originally published at https://blog.tentamen.eu on August 9, 2020.

Written by

Founder of Tentamen, software testing agency.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store