Partly distinct stream method