moved logic to apply an operation to a list into NaiveListBuilder<T> class