used to optimize bulk operations on Scala collections.