Versions in this module Expand all Collapse all v0 v0.1.0 Jul 14, 2026 Changes in this version + var ErrIsOk = errors.New("Result: no error") + var ErrNone = errors.New("Option: no value") + type List []T + func New[T any](capacity int) List[T] + func PackList[T any](s []T) List[T] + func (l List[T]) Append(v ...T) List[T] + func (l List[T]) At(i int) Option[T] + func (l List[T]) Clone() List[T] + func (l List[T]) Delete(i, j int) List[T] + func (l List[T]) Filter(fn func(T) bool) List[T] + func (l List[T]) Find(fn func(T) bool) Option[T] + func (l List[T]) First() Option[T] + func (l List[T]) Insert(i int, v ...T) List[T] + func (l List[T]) Last() Option[T] + func (l List[T]) Map[U any](fn func(T) U) List[U] + func (l List[T]) Max(less func(a, b T) bool) Option[T] + func (l List[T]) Min(less func(a, b T) bool) Option[T] + func (l List[T]) Reduce[U any](fn func(U, T) U, init U) U + func (l List[T]) Reverse() List[T] + func (l List[T]) Sort(less func(a, b T) bool) List[T] + func (l List[T]) Unpack() []T + type Option struct + func CollectOption[T any](s []Option[T]) Option[[]T] + func None[T any]() Option[T] + func PackOption[T any](v T, ok bool) Option[T] + func Some[T any](value T) Option[T] + func (o Option[T]) Alt(fn func() Option[T]) Option[T] + func (o Option[T]) Filter(fn func(T) bool) Option[T] + func (o Option[T]) Fold[O any](somefn func(T) O, nonefn func() O) O + func (o Option[T]) Get() T + func (o Option[T]) IsNone() bool + func (o Option[T]) IsSome() bool + func (o Option[T]) MapFlat[O any](fn func(T) Option[O]) Option[O] + func (o Option[T]) Map[O any](fn func(T) O) Option[O] + func (o Option[T]) Match(somefn func(T), nonefn func()) + func (o Option[T]) Or(fallback T) T + func (o Option[T]) OrElse(fn func() T) T + func (o Option[T]) Unpack() (v T, ok bool) + type PanicError struct + Stack string + Value any + func (e *PanicError) Error() string + func (e *PanicError) Unwrap() error + type Result struct + func CollectResult[T any](s []Result[T]) Result[[]T] + func Err[T any](err error) Result[T] + func Ok[T any](value T) Result[T] + func PackResult[T any](value T, err error) Result[T] + func Try[T any](fn func() T) (result Result[T]) + func (r Result[T]) Catch(fn func(error) Result[T]) Result[T] + func (r Result[T]) Fold[O any](okfn func(T) O, errfn func(error) O) O + func (r Result[T]) Get() T + func (r Result[T]) GetErr() error + func (r Result[T]) IsErr() bool + func (r Result[T]) IsOk() bool + func (r Result[T]) MapErr(fn func(error) error) Result[T] + func (r Result[T]) MapFlat[O any](fn func(T) Result[O]) Result[O] + func (r Result[T]) Map[O any](fn func(T) O) Result[O] + func (r Result[T]) Match(okfn func(T), errfn func(error)) + func (r Result[T]) Or(fallback T) T + func (r Result[T]) OrElse(fn func(error) T) T + func (r Result[T]) Unpack() (T, error)