containers v0.2.0 Containers.Optional
Inspired by the Maybe type in other languages this container provides a way to wrap any value and safely transform the value. This should result in less runtime errors.
Implemented Protocols
- Appendable
- Mappable
- Sequenceable
- Unwrappable
NOTE Appendable assumes that the inner value implements the Appendable protocol. Until further research is done there does not seem to be a way to ensure this is true of the inner value at compile time.
Summary
Functions
Takes any value and puts it in the Optional
container