Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
2015 003a Option
structure Option : OPTION
We propose two new functions for the
This page is part of proposal 2015-003.
val isNone : 'a option -> bool val fold : ('a * 'b -> 'b) -> 'b -> 'a option -> 'b
fold f init optreturns
isSome is part of the pervasive environment,
isNone should also be
visible without qualification.
isNone function provides a convienient test that was omitted from the original
fold function fills a hole in the specification.