Skip to main content
All lessons

Lists

7 min · OCaml

OCaml lists — built from head :: tail, accessed by pattern matching.

OCaml · Lists0/5 cleared

Enemy 1 of 5

A list is [1; 2; 3] or head :: tail. List.hd gets the first element.

You
Syntax Skeleton

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: apple