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

# Packages

No description provided by the author

# Functions

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
Clone creates a deep copy of the map using the provided endomorphism to clone the values.
Collect applies a collector function to the key value pairs in a map and returns the result as an array.
CollectOrd applies a collector function to the key value pairs in a map and returns the result as an array.
ConstNil return a nil map.
Copy creates a shallow copy of the map.
No description provided by the author
Bind creates an empty context of type [S] to be used with the [Bind] operation.
Empty creates an empty map.
No description provided by the author
Filter creates a new map with only the elements that match the predicate.
FilterChain creates a new map with only the elements for which the transformation function creates a Some.
FilterChainWithIndex creates a new map with only the elements for which the transformation function creates a Some.
FilterMap creates a new map with only the elements for which the transformation function creates a Some.
FilterMapWithIndex creates a new map with only the elements for which the transformation function creates a Some.
FilterWithIndex creates a new map with only the elements that match the predicate.
No description provided by the author
Flatten converts a nested map into a regular map.
Fold folds the record using the provided Monoid.
FoldMap maps and folds a record.
FoldMap maps and folds a record.
FoldMapWithIndex maps and folds a record.
FoldMapWithIndex maps and folds a record.
Fold folds the record using the provided Monoid with the items passed in the given order.
FromArray converts from an array to a map Duplicate keys are resolved by the provided [Mg.Magma].
FromArrayMap converts from an array to a map Duplicate keys are resolved by the provided [Mg.Magma].
No description provided by the author
FromFoldable converts from a reducer to a map Duplicate keys are resolved by the provided [Mg.Magma].
FromFoldableMap converts from a reducer to a map Duplicate keys are resolved by the provided [Mg.Magma].
FromStrictEquals constructs an [EQ.Eq] from the canonical comparison function.
Has tests if a key is contained in a map.
IsEmpty tests if a map is empty.
IsNil checks if the map is set to nil.
IsNonEmpty tests if a map is not empty.
IsNonNil checks if the map is set to nil.
Keys returns the key in a map.
KeysOrd returns the keys in the map in their given order.
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].
Lookup returns the entry for a key in a map if it exists.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Merge combines two maps giving the values in the right one precedence.
MergeMonoid computes the union of two maps of the same type giving the last map precedence.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MonadLookup returns the entry for a key in a map if it exists.
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
ReduceOrd reduces a map into a single value via a reducer function making sure that the keys are passed to the reducer in the specified order.
ReduceOrdWithIndex reduces a map into a single value via a reducer function making sure that the keys are passed to the reducer in the specified order.
No description provided by the author
No description provided by the author
No description provided by the author
HKTA = HKT[A] HKTAA = HKT[func(A)map[K]A] HKTRA = HKT[map[K]A].
Singleton creates a new map with a single entry.
Size returns the number of elements in a map.
No description provided by the author
No description provided by the author
HKTA = HKT<A> HKTB = HKT<B> HKTAB = HKT<func(A)B> HKTRB = HKT<map[K]B>.
No description provided by the author
No description provided by the author
UnionFirstMonoid computes the union of two maps of the same type giving the first map precedence.
No description provided by the author
UnionLastMonoid computes the union of two maps of the same type giving the last map precedence.
No description provided by the author
UnionMonoid computes the union of two maps of the same type.
No description provided by the author
No description provided by the author
Values returns the values in a map.
ValuesOrd returns the values in the map ordered by their keys in the given order.