Versions in this module Expand all Collapse all v0 v0.1.0 Feb 9, 2023 Changes in this version + func Accumulate(f func(OutType, InType) OutType, init OutType, s []InType) OutType + func Combine(s1 []T1, s2 []T2, zipper func(T1, T2) T3) []T3 + func Exists(f func(T) bool, s []T) bool + func Filter(f func(T) bool, s []T) []T + func ForAll(f func(T) bool, s []T) bool + func Insert(x T, pos int, s []T) []T + func Iter(s []T, f func(T)) + func LowerBound(x T, s []T) int + func Map(in []InType, f func(InType) OutType) []OutType + func OptionalFilter(f func(T1) Option[T2], s []T1) []T2 + func Partition(x T, s []T) int + func PartitionFilter(f func(T) bool, s []T) int + func Reverse(s []T) + type Option interface + Do func(func(T)) Option[T] + Else func(func()) Option[T] + HasValue func() bool + Value func() T + func OptionalDo(o Option[T], f func(T)) Option[T] + func OptionalElse(o Option[T], f func()) Option[T] + func OptionalFlatMap(o Option[T1], f func(T1) Option[T2]) Option[T2] + func OptionalMap(o Option[T1], f func(T1) T2) Option[T2] + type OptionImplem struct + func NewOption(v T) *OptionImplem[T] + func NilOption() *OptionImplem[T] + func (o *OptionImplem[T]) Do(f func(T)) Option[T] + func (o *OptionImplem[T]) Else(f func()) Option[T] + func (o *OptionImplem[T]) HasValue() bool + func (o *OptionImplem[T]) Value() T