|
-
arg0
:
Writer<^Monoid, ('T -> 'U)>
-
arg1
:
Writer<^Monoid, 'T>
-
Returns:
Writer<^Monoid, 'U>
|
|
-
f
:
'T -> Writer<^Monoid, 'U>
-
arg1
:
Writer<^Monoid, 'T>
-
Returns:
Writer<^Monoid, 'U>
|
|
Extract the output from a writer computation.
-
arg0
:
Writer<'Monoid, 'T>
-
Returns:
'Monoid
|
|
An action that executes the action m and adds its output
to the value of the computation.
-
m
:
Writer<'Monoid, 'T>
-
The action to be executed.
-
Returns:
Writer<'Monoid, ('T * 'Monoid)>
|
|
-
f
:
'T -> 'U
-
arg1
:
Writer<'Monoid, 'T>
-
Returns:
Writer<'Monoid, 'U>
|
|
Combines two Writers into one by applying a mapping function.
-
f
:
'T -> 'U -> 'V
-
arg1
:
Writer<^Monoid, 'T>
-
arg2
:
Writer<^Monoid, 'U>
-
Returns:
Writer<^Monoid, 'V>
|
|
Combines three Writers into one by applying a mapping function.
-
f
:
'T -> 'U -> 'V -> 'W
-
arg1
:
Writer<^Monoid, 'T>
-
arg2
:
Writer<^Monoid, 'U>
-
arg3
:
Writer<^Monoid, 'V>
-
Returns:
Writer<^Monoid, 'W>
|
|
Action that executes the action m, which returns a value and a function, and returns the value, applying the function to the output.
-
m
:
Writer<'Monoid, ('T * ('Monoid -> 'Monoid))>
-
Returns:
Writer<'Monoid, 'T>
|
|
Unwraps a writer computation as a (result, output) pair. (The inverse of Writer.)
-
arg0
:
Writer<'Monoid, 'T>
-
Returns:
'T * 'Monoid
|
|
Embeds a simple writer action.
-
w
:
'Monoid
-
Returns:
Writer<'Monoid, unit>
|