package
1.0.150
Repository: https://github.com/ibm/fp-go.git
Documentation: pkg.go.dev

# Functions

Any tests if any of the elements in the array matches the predicate.
AnyWithIndex tests if any of the elements in the array matches the predicate.
No description provided by the author
No description provided by the author
ApS attaches a value to a context [S1] to produce a context [S2] by considering the context and the value concurrently.
Bind attaches the result of a computation to a context [S1] to produce a context [S2].
BindTo initializes a new state [S1] from a value [T].
No description provided by the author
No description provided by the author
No description provided by the author
Bind creates an empty context of type [S] to be used with the [Bind] operation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FindFirst finds the first element which satisfies a predicate (or a refinement) function.
FindFirstMap finds the first element returned by an [O.Option] based selector function.
FindFirstMapWithIndex finds the first element returned by an [O.Option] based selector function.
FindFirstWithIndex finds the first element which satisfies a predicate (or a refinement) function.
FindLast finds the first element which satisfies a predicate (or a refinement) function.
FindLastMap finds the first element returned by an [O.Option] based selector function.
FindLastMapWithIndex finds the first element returned by an [O.Option] based selector function.
FindLastWithIndex finds the first element which satisfies a predicate (or a refinement) function.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
From constructs an array from a set of variadic arguments.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Let attaches the result of a computation to a context [S1] to produce a context [S2].
LetTo attaches the a value to a context [S1] to produce a context [S2].
No description provided by the author
MakeBy returns a `Array` of length `n` with element `i` initialized with `f(i)`.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Monad implements the monadic operations for an array.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Of constructs a single element array.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Sort implements a stable sort on the array given the provided ordering.
SortBy implements a stable sort on the array given the provided ordering.
SortByKey implements a stable sort on the array given the provided ordering on an extracted key.
StrictUniq converts an array of arbitrary items into an array or unique items where uniqueness is determined by the built-in uniqueness constraint.
No description provided by the author
Uniq converts an array of arbitrary items into an array or unique items where uniqueness is determined based on a key extractor function.
Unzip is the function is reverse of [Zip].
No description provided by the author
Zip takes two arrays and returns an array of corresponding pairs.
ZipWith applies a function to pairs of elements at the same index in two arrays, collecting the results in a new array.