map vs flatMap map is a one-to-one function map(f1t1) => Stream flatMap is a one-to-many function map(f1tn) => Stream