Documentation
¶
Index ¶
- func HeapSort(arr []interface{}, less func(a, b interface{}) bool) []interface{}
- func MergeSort(data []interface{}, less func(prev, cur interface{}) bool) []interface{}
- type Optional
- func (opt *Optional) Filter(filter func(data interface{}) bool) *Optional
- func (opt *Optional) FlatMap(mapper func(data interface{}) *Optional) *Optional
- func (opt *Optional) Get() interface{}
- func (opt *Optional) IfPresent(consumer func(data interface{}))
- func (opt *Optional) IsPresent() bool
- func (opt *Optional) Map(mapper func(data interface{}) interface{}) *Optional
- func (opt *Optional) OrElse(or interface{}) interface{}
- func (opt *Optional) OrElseError(err func() error) (interface{}, error)
- func (opt *Optional) OrElseGet(getter func() interface{}) interface{}
- func (opt *Optional) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.