Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Latest commit

 

History

History
31 lines (22 loc) · 1.88 KB

list.md

File metadata and controls

31 lines (22 loc) · 1.88 KB

List

A collection data structure in which a sequence of items that are associated together in order, but are not physically associated together in a contiguous block of memory as they would be in an array. In a singly-linked list, for example, each item is a node that contains the value for that item and a reference to the next node in the array.

In many languages lists are homogenous like arrays, and can contain only one type of item internally. In some languages, however, lists are heterogenous and can contain multiple types of item.

Exercises

Language List

In this exercise, the student processes a list of languages to learn on Exercism. The reference implementation (Clojure) teaches:

  • Adding an item to a list
  • Returning the first item from a list
  • Returning a list of all items but the first
  • Returning the number of items in a list.

Implementations

Track Exercise Changes
Clojure lists None
F# lists Define non-empty list. Replace tail function with reverse function.
Elixir lists Use of in/2 to test if a string is a member of a list.