x eagerly filtered on pred. TODO move to container_algorithm.d with more generic template restrictions
See Implementation