Documentation ¶
Index ¶
- func Collect[T any](iterable Iterable[T]) []T
- func CollectN[T any](iterable Iterable[T], n int) []T
- func Find[T any](iterable Iterable[T], lambda func(element *T) bool) *T
- func ForEach[T any](iterable Iterable[T], lambda func(element *T))
- type EnumerateIterator
- type FilterIterator
- type Index
- type Iterable
- type MapIterator
- type Optional
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnumerateIterator ¶
type EnumerateIterator[T any] struct { // contains filtered or unexported fields }
func Enumerate ¶
func Enumerate[T any](iterable Iterable[T]) *EnumerateIterator[T]
func (*EnumerateIterator[T]) Next ¶
func (e *EnumerateIterator[T]) Next() *Optional[Index[T]]
type FilterIterator ¶
type FilterIterator[T any] struct { // contains filtered or unexported fields }
func (*FilterIterator[T]) Next ¶
func (f *FilterIterator[T]) Next() *Optional[T]
type MapIterator ¶
func (*MapIterator[T, O]) Next ¶
func (m *MapIterator[T, O]) Next() *Optional[O]
Source Files ¶
Click to show internal directories.
Click to hide internal directories.