Repository navigation
v0.0.1-alpha
Pre-release
Pre-release
Initial release with basic functionality to handle Option types.
The Option public API includes:
- New(value T) Option[T]
- Get() T
- GetOrElse(value T) T
- Filter(func(T) bool) Option[T]
- ForEach(func(T))
- Map(func(T) T) // special case T -> T
- OrElse(value T) Option[T]
It also includes a Map T -> U helper function.