# Functions
From Creates a Stream from a given iterable or ICollection.
FromArray Creates a Stream from a given array.
FromIterable Creates a Stream from a given IIterable.
FromArray Creates a Stream of Key-Value pairs from a given map.
MapIntToString returns a ConvertFunc which maps an int to a string.
MapStringToInt returns a ConvertFunc which maps a string to an int.
NewArrayCollection Creates a new empty array collection of the given type
- elementType: The element type for the items in the collection to be created.
NewCollectionFromArray Creates a new ICollection from the given array or slice.
NewCollectionFromMap Creates a new ICollection of Key Value pairs from the given map.
No description provided by the author
No description provided by the author
# Variables
ErrorWrongType is returned when the wrong type of object is passed.
# Structs
No description provided by the author
Stream is the default stream implementation which allows stream operations on IIterables.
# Interfaces
ICollection represents a collection of elements to be used in a Stream.
IIterable represent an iterable of elements in a set.
IIterator defines the contract to be used to iterate over an set.
IMapCollection represents a collection of `*KeyValuePairs` tied to a `map`.
No description provided by the author
IStream defines the functions of a stream implementation.
IThen represents a post conditional set of actions that can be used with stream operations.
# Type aliases
ConditionalFunc is an alias to `func(interface{}) bool` which serves to define if a condition is met for an element in the collection.
ConvertFunc is an alias to `func(interface{}) interface{}` which serves to define a type conversion for the `Map` function.
IterFunc is an alias to `func(interface{})` which serves to define an iteration over a collection.
SortFunc is an alias to `func(interface{}, interface{}) int` which serves to define a comparison between two elements in the collection.