Document the flatMap API