To have an honest comparison, don't compare imperative code in an imperative language with functional code in an imperative language. Compare with functional code in a functional language, e.g. ocaml:
let list_min l =
reduce min l
I find this crushingly simple to write and to reason about, much more than the convoluted and inefficient imperative code.EDIT: for completeness, here's the definition of `reduce` and `min`:
let reduce op l =
match l with
| [] -> invalid_arg "reduce: empty list"
| [x] -> x
| hd::tl -> op (hd) (reduce op tl)
let min a b =
if a < b then a else b