linqx

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Where

func Where[T1 any](vs []T1, condition func(T1) bool) []T1

Types

type Query

type Query[T any] struct {
	// contains filtered or unexported fields
}

func From

func From[T any](vs []T) Query[T]

func (Query[T]) Count

func (q Query[T]) Count() int

func (Query[T]) First

func (q Query[T]) First() T

func (Query[T]) ForEach

func (q Query[T]) ForEach(f func(index int, data T) T) Query[T]

func (Query[T]) Last

func (q Query[T]) Last() T

func (Query[T]) Second

func (q Query[T]) Second() T

func (Query[T]) ToArray

func (q Query[T]) ToArray() []T

func (Query[T]) Where

func (q Query[T]) Where(condition func(T) bool) Query[T]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL