function last(lst) { return lst.reduce(function (a, x) { return x; }, null); }