Versions in this module Expand all Collapse all v0 v0.0.4 Jun 15, 2026 Changes in this version + func All(conditions ...bool) bool + func LazyTernary[T any](condition bool, fnTrue, fnFalse func() T) T + func Ternary[T any](condition bool, resultTrue, resultFalse T) T + func Unless(condition bool, fn func()) + func When(condition bool, fn func()) v0.0.3 Jun 10, 2026 Changes in this version + type Atomic struct + func (s *Atomic[T]) CompareAndSwap(old, new T) (swapped bool) + func (s *Atomic[T]) Load() T + func (s *Atomic[T]) Store(val T) + func (s *Atomic[T]) Swap(new T) (old T) v0.0.2 May 29, 2026 Changes in this version + type Failure struct + func (f *Failure[T]) Error() error + func (f *Failure[T]) IsFailure() bool + func (f *Failure[T]) IsSuccess() bool + func (f *Failure[T]) Value() T + type Result interface + Error func() error + IsFailure func() bool + IsSuccess func() bool + Value func() T + func NewFailure[T any](err error) Result[T] + func NewSuccess[T any](value T) Result[T] + type Success struct + func (s *Success[T]) Error() error + func (s *Success[T]) IsFailure() bool + func (s *Success[T]) IsSuccess() bool + func (s *Success[T]) Value() T v0.0.1 May 29, 2026 Changes in this version + type None struct + func (n *None[T]) Get() T + func (n *None[T]) IsEmpty() bool + func (n *None[T]) IsPresent() bool + type Optional interface + Get func() T + IsEmpty func() bool + IsPresent func() bool + func NewNone[T any]() Optional[T] + func NewSome[T any](value T) Optional[T] + type Some struct + func (s *Some[T]) Get() T + func (s *Some[T]) IsEmpty() bool + func (s *Some[T]) IsPresent() bool + type Void = struct + var NULL Void