create an Effect from several other ones concatenating the labels
create an Effect from several other ones concatenating the labels
create an Effect with a label and a value
create an Effect from a value
(Since version ) see corresponding Javadoc for more information.
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