Sums

kyo.sums.Sums
See theSums companion object
final class Sums[V] extends Effect[<none>, Sums[V]]

Attributes

Companion
object
Graph
Supertypes
class Effect[<none>, Sums[V]]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def accepts[M2[_], E2 <: Effect[M2, LazyRef(...)]](other: Effect[M2, E2]): Boolean

Attributes

Definition Classes
def add(v: V): V > Sums[V]
def run[T, S](v: T > Sums[V] & S)(implicit g: Summer[V], f: Flat[T > Sums[V] & S]): (T, V) > S
def run[T, S](init: V)(v: T > Sums[V] & S)(implicit g: Summer[V], f: Flat[T > Sums[V] & S]): (T, V) > S
def set(v: V): V > Sums[V]
def update(f: V => V): V > Sums[V]

Inherited methods

final inline protected def handle[T, S, S2](v: T > Sums[V] & S)(implicit h: Handler[<none>, Sums[V], S2], s: Safepoint[<none>, Sums[V]], f: Flat[T > Sums[V] & S]): M[T] > S & S2

Attributes

Inherited from:
Effect
final inline protected def suspend[T, S](v: <none>[T] > S): T > S & E

Attributes

Inherited from:
Effect
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Effect -> Any
Inherited from:
Effect

Concrete fields

val get: V > Sums[V]