Foldable[List] implementation