Ref

turbolift.io.Ref$package$.Ref$
object Ref

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Ref.type

Members list

Value members

Concrete methods

def apply[S](initial: S): Computation[Ref[S], IO]

Extensions

Extensions

extension [S](thiz: Ref[S])(thiz: Ref[S])
def get: Computation[S, IO]
def getModify(f: S => S): Computation[S, IO]
def getModifyGet(f: S => S): Computation[(S, S), IO]
def getUpdate[A](f: S => (A, S)): Computation[(A, S), IO]
def getUpdateGet[A](f: S => (A, S)): Computation[(A, S, S), IO]
def gets[A](f: S => A): Computation[A, IO]
def modify(f: S => S): Computation[Unit, IO]
def modifyGet(f: S => S): Computation[S, IO]
def put(a: S): Computation[Unit, IO]
def swap(a: S): Computation[S, IO]
def tryModify(f: S => S): Computation[Boolean, IO]
def update[A](f: S => (A, S)): Computation[A, IO]
def updateGet[A](f: S => (A, S)): Computation[(A, S), IO]