package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jul 18, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
func ConcatAll[A any](m Monoid[A]) func([]A) A
ConcatAll concatenates all values using the monoid and the default empty value
Fold concatenates all values using the monoid and the default empty value
func GenericConcatAll[GA ~[]A, A any](m Monoid[A]) func(GA) A
func ApplicativeMonoid[A, HKTA, HKTFA any](
_of func(A) HKTA,
_map func(HKTA, func(A) func(A) A) HKTFA,
_ap func(HKTFA, HKTA) HKTA,
m Monoid[A],
) Monoid[HKTA]
FunctionMonoid forms a monoid as long as you can provide a monoid for the codomain.
func MakeMonoid[A any](c func(A, A) A, e A) Monoid[A]
MakeMonoid creates a monoid given a concat function and an empty element
Reverse returns the dual of a `Monoid`, obtained by swapping the arguments of `Concat`.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.