Champernowne's constant: use flatMap instead of flatten