_99-problems-ocaml-lists

Table of Contents

Problems Ocaml Lists

List Problems

1. Write a function last : 'a list -> 'a option that returns the last element of a list.

{{# include _include/code/algorithms/99-problems/ocaml/last_element.ml }}