|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectcom.github.mperry.fg.WriterM
@groovy.transform.TypeChecked class WriterM
Created by MarkPerry on 11/01/14. The a is the value in the monad and w is the log value (a monoid)
| Property Summary | |
|---|---|
static F |
LOG_FUNCTION
|
static F2 |
STRING_CONCAT
|
static java.lang.String |
STRING_EMPTY
|
W |
log
|
F2 |
plus
|
A |
value
|
| Constructor Summary | |
WriterM(A a, W w, F2 f)
|
|
| Method Summary | |
|---|---|
WriterM
|
flatMap(F f)
|
WriterM
|
flatMap(groovy.lang.Closure c)
|
static WriterM
|
lift(A a, W w, F2 f)
|
static WriterM
|
lift(A a)
|
static WriterM
|
log(A a)
|
static F
|
log()
|
WriterM
|
map(F f)
|
WriterM
|
map(groovy.lang.Closure c)
|
WriterM
|
tell(W w)
|
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
| Property Detail |
|---|
static F LOG_FUNCTION
static F2 STRING_CONCAT
static java.lang.String STRING_EMPTY
W log
F2 plus
A value
| Constructor Detail |
|---|
WriterM(A a, W w, F2 f)
| Method Detail |
|---|
WriterM flatMap(F f)
WriterM flatMap(groovy.lang.Closure c)
static WriterM lift(A a, W w, F2 f)
static WriterM lift(A a)
static WriterM log(A a)
static F log()
WriterM map(F f)
WriterM map(groovy.lang.Closure c)
WriterM tell(W w)
Groovy Documentation