ocaml-batteries-team/batteries-included — pull request #279 by VictorNicollet (2012-08-03 11:54:46+00:00)
Title: `List.filter` equivalent for options

`filter f (Some x)` returns `Some x` if `f x` is true and `None` otherwise. `filter f None` is always `None`.

I have found this function useful on several occasions, so I thought I would contribute it to Batteries. What do you think ?

I have not filled in the `@since` doc in this pull request.