Comparison between functional and imperative implementations of basic data structures and algorithms.