Packages

final class TArray[A] extends AnyVal

Wraps array of TRef and adds methods for convenience. Caution: most of methods are not stack-safe.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TArray
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def apply(index: Int): STM[Nothing, A]

    Extracts value from ref in array.

  5. val array: Array[TRef[A]]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. final def collect[B](pf: PartialFunction[A, B]): STM[Nothing, TArray[B]]
  8. final def fold[Z](acc: Z)(op: (Z, A) ⇒ Z): STM[Nothing, Z]
  9. final def foldM[E, Z](acc: Z)(op: (Z, A) ⇒ STM[E, Z]): STM[E, Z]

    Atomically folds TArray with STM function.

  10. final def foreach[E](f: (A) ⇒ STM[E, Unit]): STM[E, Unit]

    Atomically performs side-effect for each item in array

  11. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def map[B](f: (A) ⇒ B): STM[Nothing, TArray[B]]

    Creates TArray of new TRefs, mapped with pure function.

  14. final def mapM[E, B](f: (A) ⇒ STM[E, B]): STM[E, TArray[B]]

    Creates TArray of new TRefs, mapped with transactional effect.

  15. def toString(): String
    Definition Classes
    Any
  16. final def transform(f: (A) ⇒ A): STM[Nothing, Unit]

    Atomically updates all TRefs inside this array using pure function.

  17. final def transformM[E](f: (A) ⇒ STM[E, A]): STM[E, Unit]

    Atomically updates all elements using transactional effect.

  18. final def update(index: Int, fn: (A) ⇒ A): STM[Nothing, A]

    Updates element in the array with given function.

  19. final def updateM[E](index: Int, fn: (A) ⇒ STM[E, A]): STM[E, A]

    Atomically updates element in the array with given transactionall effect.

Inherited from AnyVal

Inherited from Any

Ungrouped