Ref

eu.joaocosta.interim.Ref$
See theRef companion class
object Ref

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Ref.type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def withRef[T](initialValue: T)(block: Ref[T] => Unit): T

Creates a Ref that can be used inside a block and returns that value.

Creates a Ref that can be used inside a block and returns that value.

Useful to set temporary mutable variables.

Attributes

def withRefs[T <: Product](initialValue: T)(using mirror: ProductOf[T])(block: Map[<none>, Ref] => Unit): T

Destructures an object into a tuple of Refs that can be used inside the block. In the end, a new object is returned with the updated values

Destructures an object into a tuple of Refs that can be used inside the block. In the end, a new object is returned with the updated values

Useful to set temporary mutable variables.

Attributes