collection

package
v0.0.0-...-81dff9f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection[TItem any] interface {
	iterator.IntoIterator[TItem]

	// Concat appends all items of the IntoIterator
	// to the end of this Collection
	Concat(iterator.IntoIterator[TItem]) Collection[TItem]

	// Collect appends all items of the Iterator
	// to the end of this Collection
	Collect(iterator.Iterator[TItem]) Collection[TItem]

	// Append appends an item to the end of
	// this Collection
	Append(TItem) Collection[TItem]

	// Count returns the number of items in this
	// Collection
	Count() int
}

Collection provides shared behavior between all collections, including chainable mutations and other utilities

Jump to

Keyboard shortcuts

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