Documentation ¶
Overview ¶
Package op provides generic operations that can be used for converting or reducing collections, loops, slices
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IfDoElse ¶ added in v0.0.4
IfDoElse exececutes the tru func if ok, otherwise exec the fal function and returns it result
func Max ¶ added in v0.0.3
func Max[T constraints.Ordered](a T, b T) T
Max returns the maximum from two operands
func Min ¶ added in v0.0.3
func Min[T constraints.Ordered](a T, b T) T
Min returns the minimum from two operands
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package first provides helpers for retrieving a first element of a slice that satisfies a condition
|
Package first provides helpers for retrieving a first element of a slice that satisfies a condition |
Package last provides helpers for retrieving a last element of a slice that satisfies a condition
|
Package last provides helpers for retrieving a last element of a slice that satisfies a condition |
Package sum provides sum.Of alias
|
Package sum provides sum.Of alias |
Package use provides conditional expression builders
|
Package use provides conditional expression builders |
Click to show internal directories.
Click to hide internal directories.