arraylist

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayList

type ArrayList struct {
	// contains filtered or unexported fields
}

Define ArrayList struct

func New

func New() *ArrayList

Create new empty ArrayList

func (*ArrayList) Add

func (l *ArrayList) Add(e gotypes.E) *ArrayList

Add element

func (*ArrayList) Clear

func (l *ArrayList) Clear()

Clear ArrayList

func (*ArrayList) Count

func (l *ArrayList) Count(matchFunc matchFunc) int

Count function

func (*ArrayList) Filter

func (l *ArrayList) Filter(matchFuns ...matchFunc) *ArrayList

Filter function

func (*ArrayList) FindAny

func (l *ArrayList) FindAny(matchFuncs ...matchFunc) gotypes.E

FindAny function

func (*ArrayList) ForEach

func (l *ArrayList) ForEach(eachFunc eachFunc)

ForEach function

func (*ArrayList) Get

func (l *ArrayList) Get(index int) gotypes.E

Get index element

func (*ArrayList) Map

func (l *ArrayList) Map(mapFunc mapFunc) *ArrayList

Map function

func (*ArrayList) MatchAll

func (l *ArrayList) MatchAll(matchFun matchFunc) bool

matchAll function

func (*ArrayList) MatchAny

func (l *ArrayList) MatchAny(matchFun matchFunc) bool

MatchAny function

func (*ArrayList) MatchNone

func (l *ArrayList) MatchNone(matchFun matchFunc) bool

MatchNone function

func (*ArrayList) Reduce

func (l *ArrayList) Reduce(val gotypes.E, reduceFunc reduceFunc) gotypes.E

Reduce function

func (*ArrayList) Remove

func (l *ArrayList) Remove(index int) gotypes.E

Remove index element

func (*ArrayList) Size

func (l *ArrayList) Size() int

Return ArrayList size

Jump to

Keyboard shortcuts

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