source:
src/utilities/option.ma
@
762
Last change on this file since 762 was 761, checked in by , 10 years ago | |
---|---|
File size: 179 bytes |
Line | |
---|---|
1 | include "basics/types.ma". |
2 | |
3 | definition option_map : ∀A,B:Type[0]. (A → B) → option A → option B ≝ |
4 | λA,B,f,o. match o with [ None ⇒ None B | Some a ⇒ Some B (f a) ]. |
Note: See TracBrowser
for help on using the repository browser.