_99-problems-cpp-lists

Table of Contents

Problems Cpp 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/cpp/lists/last.h }}