squash: filterOccurrencesFrom: use 'map' instead of Partial Function