package
Version:
v0.0.10
Opens a new window with list of versions in this module.
Published: Apr 22, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Conform[
A any,
MF M[func(A) A],
MA M[A],
CA Class[
A,
A,
A,
MF,
MA,
MA,
MA,
],
](c CA) func(t *testing.T, x A)
Conform returns a function testing if the implementation abides by its laws.
type Class[
A any,
B any,
C any,
MF M[func(A) B],
MA M[A],
MB M[B],
MC M[C],
] interface {
applicative.Class[A, B, C, MF, MA, MB, MC]
Bind(MA, func(A) MB) MB
Then(MA, MB) MB
Return(A) MA
}
type M[T any] interface{}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.