Groovy Documentation

com.github.mperry.fg
[Groovy] Class Identity

java.lang.Object
  com.github.mperry.fg.typeclass.Monad
      com.github.mperry.fg.Identity

@groovy.transform.TypeChecked
@groovy.transform.Canonical
class Identity
extends Monad

Created by MarkPerry on 9/01/14.


Property Summary
A item

 
Method Summary
Identity flatMap(Identity mb, F f)

Identity flatMap(F f)

static Identity idUnit()

static Identity lift(B b)

Identity unit(B b)

 

Property Detail

item

A item


 
Method Detail

flatMap

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
Identity flatMap(Identity mb, F f)


flatMap

Identity flatMap(F f)


idUnit

static Identity idUnit()


lift

static Identity lift(B b)


unit

@java.lang.Override
Identity unit(B b)


 

Groovy Documentation