IterableCpsMonad
Monad for iterable collection. typical usage:
def allpairs[A](l:List[A]):List((A,A)) = reify[List] {
(reflect(l),reflect(l))
}
Attributes
- Source
- IterableCpsMonad.scala
- Graph
-
- Supertypes
-
trait CpsThrowMonadInstanceContext[C]trait CpsThrowMonad[C]trait CpsThrowSupport[C]trait CpsMonad[C]class Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited types
Attributes
- Inherited from:
- CpsThrowMonadInstanceContext
- Source
- CpsMonadContext.scala
Attributes
- Inherited from:
- CpsMonad
- Source
- CpsMonad.scala
Value members
Concrete methods
represent error e
in monadic context.
bind combinator, which compose f
over fa
bind combinator, which compose f
over fa
Attributes
- Definition Classes
- Source
- IterableCpsMonad.scala
map a function f
over fa
Pure - wrap value t
inside monad.
Pure - wrap value t
inside monad.
Note, that pure use eager evaluation, which is different from Haskell.
Attributes
- Definition Classes
- Source
- IterableCpsMonad.scala
Inherited methods
run op in the context environment.
run op in the context environment.
Attributes
- Definition Classes
- Inherited from:
- CpsThrowMonadInstanceContext
- Source
- CpsMonadContext.scala
Wrap and flatten of monadic expression..
Attributes
- Inherited from:
- CpsMonad
- Source
- CpsMonad.scala
Create monadic expression according to the default operation of choosen monad types. (i.e. delaying for effect monads, starting for eager monand, pure by default)
Create monadic expression according to the default operation of choosen monad types. (i.e. delaying for effect monads, starting for eager monand, pure by default)
Attributes
- Inherited from:
- CpsMonad
- Source
- CpsMonad.scala