Documentation ¶
Index ¶
- func LinqAggregate[T any, P any](obj []T, reducer func(T, P) P, acc P) P
- func LinqAggregateIterable[T any, TV IIterable[T], P any](obj TV, reducer func(T, P) P, acc P) P
- func LinqAll[T any](obj []T, predicate func(T) bool) bool
- func LinqAllIterable[T any, TV IIterable[T]](obj TV, predicate func(T) bool) bool
- func LinqAny[T any](obj []T, predicate func(T) bool) bool
- func LinqAnyIterable[T any, TV IIterable[T]](obj TV, predicate func(T) bool) bool
- func LinqContains[T comparable](obj []T, searchValue T) bool
- func LinqContainsIterable[T comparable, TV IIterable[T]](obj TV, searchValue T) bool
- func LinqCount[T any](obj []T) int
- func LinqCountIterable[T any, TV IIterable[T]](obj TV) int
- func LinqEach[T any](obj []T, action func(T))
- func LinqEachIterable[T any, TV IIterable[T]](obj TV, action func(T))
- func LinqFind[T any](obj []T, predicate func(T) bool) Nullable[T]
- func LinqFindIterable[T any, TV IIterable[T]](obj TV, predicate func(T) bool) Nullable[T]
- func LinqGroupBy[T any, K comparable](obj []T, keyGenerator func(T) K) map[K][]T
- func LinqGroupByIterable[T any, TV IIterable[T], K comparable](obj TV, keyGenerator func(T) K) map[K][]T
- func LinqJoin[T any](objs ...[]T) (result []T)
- func LinqJoinIterable[T any, TV IIterable[T]](objs ...TV) (result []T)
- func LinqLast[T any](obj []T) T
- func LinqLastIterable[T any, TV IIterable[T]](obj TV) T
- func LinqMax[T constraints.Ordered](obj []T) T
- func LinqMaxIterable[T constraints.Ordered, TV IIterable[T]](obj TV) T
- func LinqMin[T constraints.Ordered](obj []T) T
- func LinqMinIterable[T constraints.Ordered, TV IIterable[T]](obj TV) T
- func LinqReduce[T any, P any](obj []T, reducer func(T, P) P, acc P) P
- func LinqReduceIterable[T any, TV IIterable[T], P any](obj TV, reducer func(T, P) P, acc P) P
- func LinqSelect[IT any, OT any](obj []IT, predicate func(IT) OT) (result []OT)
- func LinqSelectIterable[IT any, TV IIterable[IT], OT any](obj TV, predicate func(IT) OT) (result []OT)
- func LinqSkip[T any](obj []T, count int) []T
- func LinqSkipIterable[T any, TV IIterable[T]](obj TV, count int) (result []T)
- func LinqSum[T constraints.Ordered](obj []T) (sum T)
- func LinqSumBy[T any, R constraints.Ordered](obj []T, selector func(T) R) (sum R)
- func LinqSumByIterable[T any, TV IIterable[T], R constraints.Ordered](obj TV, selector func(T) R) (sum R)
- func LinqSumIterable[T constraints.Ordered, TV IIterable[T]](obj TV) (sum T)
- func LinqTake[T any](obj []T, count int) []T
- func LinqTakeIterable[T any, TV IIterable[T]](obj TV, count int) (result []T)
- func LinqToArray[T any](obj []T) []T
- func LinqToArrayIterable[T any, TV IIterable[T]](obj TV) (result []T)
- func LinqWhere[T any](obj []T, predicate func(T) bool) (result []T)
- func LinqWhereIterable[T any, TV IIterable[T]](obj TV, predicate func(T) bool) (result []T)
- type IEnumerable
- type IEnumerableV
- type IIterable
- type IIterableV
- type IResetableIterable
- type IResetableIterableV
- type IterableSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LinqAggregate ¶
func LinqAggregateIterable ¶
func LinqAllIterable ¶
func LinqAnyIterable ¶
func LinqContains ¶
func LinqContains[T comparable](obj []T, searchValue T) bool
func LinqContainsIterable ¶
func LinqContainsIterable[T comparable, TV IIterable[T]](obj TV, searchValue T) bool
func LinqCountIterable ¶
func LinqEachIterable ¶
func LinqFindIterable ¶
func LinqGroupBy ¶
func LinqGroupBy[T any, K comparable](obj []T, keyGenerator func(T) K) map[K][]T
func LinqGroupByIterable ¶
func LinqGroupByIterable[T any, TV IIterable[T], K comparable](obj TV, keyGenerator func(T) K) map[K][]T
func LinqJoinIterable ¶
func LinqLastIterable ¶
func LinqMax ¶
func LinqMax[T constraints.Ordered](obj []T) T
func LinqMaxIterable ¶
func LinqMaxIterable[T constraints.Ordered, TV IIterable[T]](obj TV) T
func LinqMin ¶
func LinqMin[T constraints.Ordered](obj []T) T
func LinqMinIterable ¶
func LinqMinIterable[T constraints.Ordered, TV IIterable[T]](obj TV) T
func LinqReduce ¶
func LinqReduceIterable ¶
func LinqSelect ¶
func LinqSelectIterable ¶
func LinqSkipIterable ¶
func LinqSum ¶
func LinqSum[T constraints.Ordered](obj []T) (sum T)
func LinqSumBy ¶
func LinqSumBy[T any, R constraints.Ordered](obj []T, selector func(T) R) (sum R)
func LinqSumByIterable ¶
func LinqSumByIterable[T any, TV IIterable[T], R constraints.Ordered](obj TV, selector func(T) R) (sum R)
func LinqSumIterable ¶
func LinqSumIterable[T constraints.Ordered, TV IIterable[T]](obj TV) (sum T)
func LinqTakeIterable ¶
func LinqToArray ¶
func LinqToArray[T any](obj []T) []T
func LinqToArrayIterable ¶
func LinqWhereIterable ¶
Types ¶
type IEnumerable ¶
type IEnumerableV ¶
type IEnumerableV[TK comparable, TV any] interface { *map[TK]TV }
type IIterableV ¶
type IIterableV[TK comparable, TV any] interface { Next() (TK, TV, bool) }
type IResetableIterable ¶
type IResetableIterableV ¶
type IResetableIterableV[TK comparable, TV any] interface { Reset() Next() (TK, TV, bool) }
type IterableSlice ¶
type IterableSlice[TV any] struct { // contains filtered or unexported fields }
func (*IterableSlice[TV]) Next ¶
func (is *IterableSlice[TV]) Next() (TV, bool)
func (*IterableSlice[TV]) Reset ¶
func (is *IterableSlice[TV]) Reset()
Click to show internal directories.
Click to hide internal directories.