Skip to content

v0.0.1-alpha

Pre-release
Pre-release

Choose a tag to compare

@danicat danicat released this 16 Aug 17:44
· 6 commits to main since this release
c276a50

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.