@@ -138,19 +138,26 @@ flatMap repeat 2, lists.monad
138
138
139
139
_ func_ ` contravariantFrom moduleWitness `
140
140
141
+ Creates a Contravariant from a given ContravariantWitness.
142
+
141
143
## flatMap
142
144
143
145
_ func_ ` flatMap f, witness, instance `
144
146
147
+ Flat map for a yet unknown witness and instance.
148
+ Can be used in generic contexts, where the witness will be curried.
149
+
145
150
## functorFrom
146
151
147
152
_ func_ ` functorFrom moduleWitness `
148
153
154
+ Creates a Functor from a given FunctorWitness.
155
+
149
156
## map
150
157
151
158
_ func_ ` map f, witness, value `
152
159
153
- Transforms a wrapped value using a functor witness.
160
+ Transforms a wrapped value using a yet unknown functor witness and value .
154
161
Essentially just uses the map of the given witness,
155
162
but allows to defer the decision regarding the witness itself.
156
163
@@ -165,11 +172,18 @@ map incr, lists, [1, 2, 3]
165
172
166
173
_ func_ ` monadFrom monadWitness `
167
174
175
+ Creates a Monad from a given MonadWitness.
176
+
168
177
## pullback
169
178
170
179
_ func_ ` pullback f, witness `
171
180
181
+ pullback for a yet unknown witness.
182
+
172
183
## pure
173
184
174
185
_ func_ ` pure value, witness `
175
186
187
+ Creates a pure monad value from a yet unknown witness.
188
+ Can be used in generic contexts, where the witness will be curried.
189
+
0 commit comments