Of course, I could break this code by extracting the list after the filter or the map function and print the size. But for the sake of learning i am wondering whether there is a nicer solution where i could keep this function chaining.
listOfSomething.filter(condition).map(e => e.mapToSomeOther).mkString(DELIMITER)