mozilla/rust — pull request #12960 by hatahet (2014-03-17 01:49:53+00:00)
Title: Added apply method to Option type.

Adds a conditional execution method for the `Option` type, similar to Scala's `Option.foreach()`. This is like `Option.map`, except that it does not return a value. This should help in reducing some `match` boilerplate.