Generic output manipulator for lists