source:
src/utilities/option.ma
@
1183
Last change on this file since 1183 was 761, checked in by , 10 years ago | |
---|---|
File size: 179 bytes |
Rev | Line | |
---|---|---|
[761] | 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.