It has taken me a long time to work out the function of ex-boyfriends, at least for me: how they can help you work out what you want from life and from a partner by showing you what you don't. If a man is your ex, it's better all round if he was not Mr. Right.