implement last using foldl1