Effect

case object Effect

Factory methods for creating Effects. Effects values can also be concatenated to produce "summary" effects.

val e1 = Effect("hello", print("hello")) val e2 = Effect("world", print("world")) val concatenatedEffects = Effect(e1, e2) concatenatedEffects.toString == hello/world

val concatenatedEffect = Effect(", ", e1, e2) concatenatedEffects2.toString == hello, world

Companion:
class
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Effect.type

Type members

Inherited types

type MirroredElemLabels = EmptyTuple
Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple
Inherited from:
Singleton
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror
type MirroredMonoType = Singleton
Inherited from:
Singleton
type MirroredType = Singleton
Inherited from:
Singleton

Value members

Concrete methods

def apply[T](value: => T): Effect[T]

create an Effect from a value

create an Effect from a value

def apply[T](label: String, value: => T): Effect[T]

create an Effect with a label and a value

create an Effect with a label and a value

def apply(e1: Effect[_], es: Effect[_]*): Effect[Any]

create an Effect from several other ones concatenating the labels

create an Effect from several other ones concatenating the labels

def apply(separator: String, e1: Effect[_], es: Effect[_]*): Effect[Any]

create an Effect from several other ones concatenating the labels

create an Effect from several other ones concatenating the labels

Inherited methods

def fromProduct(p: Product): MirroredMonoType
Inherited from:
Singleton
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product