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

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# 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.
ConcatAll efficiently concatenates the input arrays into a final array.
ArrayOption returns a function to convert sequence of options into an option of a sequence.
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
Clone creates a deep copy of the array using the provided endomorphism to clone the values.
No description provided by the author
ConstNil returns a nil array.
Copy creates a shallow copy of the array.
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
Filter returns a new array with all elements from the original array that match a predicate.
FilterChain maps an array with an iterating function that returns an [O.Option] of an array.
FilterMap maps an array with an iterating function that returns an [O.Option] and it keeps only the Some values discarding the Nones.
No description provided by the author
FilterMapWithIndex maps an array with an iterating function that returns an [O.Option] and it keeps only the Some values discarding the Nones.
No description provided by the author
FilterWithIndex returns a new array with all elements from the original array that match a predicate.
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 Last element which satisfies a predicate (or a refinement) function.
FindLastMap finds the Last element returned by an [O.Option] based selector function.
FindLastMapWithIndex finds the Last element returned by an [O.Option] based selector function.
FindLastWithIndex finds the Last 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
Fold folds the array using the provided Monoid.
FoldMap maps and folds an array.
FoldMapWithIndex maps and folds an array.
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
IsNil checks if the array is set to nil.
No description provided by the author
IsNonNil checks if the array is set to nil.
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
No description provided by the author
Monad returns 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
Of constructs a single element array.
Partition creates two new arrays out of one, the left result contains the elements for which the predicate returns false, the right one those for which the predicate returns true.
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
Replicate creates a `Array` containing a value repeated the specified number of times.
No description provided by the author
Sequence takes an `Array` where elements are `HKT<A>` (higher kinded type) and, using an applicative of that `HKT`, returns an `HKT` of `[]A`.
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
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
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.