org.atnos.eff
package org.atnos.eff
Members list
Packages
package org.atnos.eff.syntax
Type members
Classlikes
Attributes
- Source
- Choose.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ChoosePlusclass ChooseZero[T]
trait ChooseCreation
Attributes
- Companion
- object
- Source
- ChooseCreation.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
object ChooseCreation extends ChooseCreation
Attributes
- Companion
- trait
- Source
- ChooseCreation.scala
- Supertypes
- Self type
-
ChooseCreation.type
trait ChooseEffect extends ChooseCreation, ChooseInterpretation
The Choose effect models non-determinism So we can get results, either:
The Choose effect models non-determinism So we can get results, either:
- no results (when using ChooseZero)
- the result for action1 or the result for action b (when using ChoosePlus)
When running this effect we can "collect" the results with any F which has an Alternative instance.
For example if F is List then:
- no results is the empty list
- the result for a or b is List(a, b)
If F is Option then:
- no results is the None
- the result for a or b is Some(a) or Some(b
Attributes
- Companion
- object
- Source
- ChooseEffect.scala
- Supertypes
- Known subtypes
-
object ChooseEffect
object ChooseEffect extends ChooseEffect
Attributes
- Companion
- trait
- Source
- ChooseEffect.scala
- Supertypes
-
trait ChooseEffecttrait ChooseInterpretationtrait ChooseCreationclass Objecttrait Matchableclass AnyShow all
- Self type
-
ChooseEffect.type
trait ChooseImplicits
Attributes
- Companion
- object
- Source
- ChooseImplicits.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ChooseImplicits
object ChooseImplicits extends ChooseImplicits
Attributes
- Companion
- trait
- Source
- ChooseImplicits.scala
- Supertypes
- Self type
-
ChooseImplicits.type
trait ChooseInterpretation
Attributes
- Companion
- object
- Source
- ChooseInterpretation.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
object ChooseInterpretation extends ChooseInterpretation
Attributes
- Companion
- trait
- Source
- ChooseInterpretation.scala
- Supertypes
- Self type
-
ChooseInterpretation.type
case object ChoosePlus extends Choose[Boolean]
Attributes
- Source
- Choose.scala
- Supertypes
- Self type
-
ChoosePlus.type
case class ChooseZero[T]() extends Choose[T]
Attributes
- Source
- Choose.scala
- Supertypes
This class can be used as a F in runChoose to generate random alternatives
This class can be used as a F in runChoose to generate random alternatives
Attributes
- Companion
- object
- Source
- Rand.scala
- Supertypes
object Rand
Attributes
- Companion
- class
- Source
- Rand.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Rand.type
In this article