Added example to Option.collect method.
Merge pull request #3857 from jxcoder/issue-3856

[scaladoc] Added example to Option.collect method.