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