Ooops... It seems that peek() is better than map for this task. But it is advertised as a debuging method!