c

Custom.Array._library

final class _library[A] extends AnyVal with Custom.Array.Like[A]

Ordering
  1. Alphabetic
Inherited
  1. Array._library
  2. Array.Like
  3. Array.View
  4. Any.Able.Void
  5. scala.AnyVal
  6. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type

  1. type Array._library.TYPE = Array[A]
    Attributes
    protected
    Definition Classes
    _libraryView

Constant

  1. val base: Array[A]
    Attributes
    protected
    Definition Classes
    _libraryView

Method

  1. def apply(i: Int): A
    Definition Classes
    _libraryView
  2. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  3. def contains(v: A): Boolean

    Inclusion check

    Inclusion check

    Returns true if specified value is contained within

    Attributes
    protected
    Definition Classes
    View
  4. def copy(r: Idx.Range): Array[A]

    Copy range

    Copy range

    Copies elements within the range specified

    ('A' <> 'Z').all.toArray.copy(3 <> 10).all.lp  // Prints: ~(D, E, F, G, H, I, J, K)
    Definition Classes
    _libraryView
  5. def copyDrop(r: Idx.Range): Array[A]

    Copy without range

    Copy without range

    Copies elements outside the range specified

    ('A' <> 'Z').all.toArray.copyDrop(3 <> 20).all.lp // Prints: ~(A, B, C, V, W, X, Y, Z)
    Definition Classes
    _libraryView
  6. def copyFirst(number: Int): Array._library.TYPE

    Copy start

    Copy start

    Copies specified number of first elements

    ('A' <> 'Z').all.toArray.copyFirst(5).all.lp  // Prints: ~(A, B, C, D, E)
    Definition Classes
    View
  7. def copyFrom(position: Int): Array._library.TYPE

    Copy end

    Copy end

    Copies elements from specified position to the end

    ('A' <> 'Z').all.toArray.copyFrom(20).all.lp  // Prints: ~(U, V, W, X, Y, Z)
    Definition Classes
    View
  8. def copyFull: Array._library.TYPE

    Copy everything

    Copy everything

    Copies entire content

    Definition Classes
    View
  9. def copyLast(number: Int): Array._library.TYPE

    Copy end

    Copy end

    Copies specified number of elements at the end

    ('A' <> 'Z').all.toArray.copyLast(5).all.lp  // Prints: ~(V, W, X, Y, Z)
    Definition Classes
    View
  10. def copyResize(newSize: Int): Array[A]
    Definition Classes
    _libraryLike
  11. def copyShort(cnt: Int): Array._library.TYPE

    Copy without end

    Copy without end

    Copies from the beginning, missing specified number of elements at the end

    ('A' <> 'Z').all.toArray.copyShort(20).all.lp  // Prints: ~(A, B, C, D, E, F)
    Definition Classes
    View
  12. def copyTo(destArray: Array[_ >: A], destPos: Int = 0, srcRangeOpt: Opt[Idx.Range] = \/): Int

    Copy to another array

    Copy to another array

    Copies elements to target array

    Definition Classes
    View
  13. def fill(value: A): Unit
    Definition Classes
    Like
  14. def fillAt(r: Idx.Range, value: A): Unit
    Definition Classes
    Like
  15. def getUpdateIf(position: Int, updateIf: (A) ⇒ Boolean, newValue: (A) ⇒ A): A
    Definition Classes
    Like
  16. def getUpdateNull(position: Int, newValue: ⇒ A): A
    Definition Classes
    Like
  17. def Idx: Idx.Array[A]
    Definition Classes
    _library
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def isVoid: Boolean

    Void check

    Void check

    Returns true if this instance is void

    Definition Classes
    ViewVoid
  20. def make: (Array[A]) ⇒ Array[A]
    Definition Classes
    _libraryView
  21. def size: Int
    Definition Classes
    _libraryView
  22. def sort(implicit o: scala.math.Ordering[A]): Unit
    Definition Classes
    Like
  23. def toArray(implicit t: ClassTag[A]): Array[A]

    Copy to Array

    Copy to Array

    Copies all elements to a new Array

    Definition Classes
    View
  24. def toRefs: Refs[A]
    Definition Classes
    Like
  25. def toString(): String

    Description

    Description

    Provides description of size and array type

    Definition Classes
    View → Any
  26. def updateAll(stream: ~[A], controlSize: Opt.Int = \/): Unit
    Definition Classes
    Like
  27. def updateAllAt(position: Int, stream: ~[A], controlSize: Opt.Int = \/): Unit
    Definition Classes
    Like

Operator

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(v: A): Array[A]

    Plus

    Plus

    Creates a new instance with value added

    // Generic Refs example
    val a1: Refs[Char] = Refs.*('a', 'b', 'c')
    val a2: Refs[Char] = a1 + 'x' + 'y' + 'z'
    
    a1.all.lp // Prints: ~(a, b, c)
    a2.all.lp // Prints: ~(a, b, c, x, y, z)
    Definition Classes
    _libraryView
  4. def +@(i: Int, v: A): Array[A]

    Plus at position

    Plus at position

    Creates a new instance with specified value added at specified position

    val a1: Chars = Chars.*('a', 'b', 'c')
    val a2: Chars = a1 +@ (3, 'Z') +@ (1, 'X')
    
    a1.all.lp // Prints: ~(a, b, c)
    a2.all.lp // Prints: ~(a, X, b, c, Z)
    Definition Classes
    _libraryView
  5. def +~(v: ~[A]): Array[A]

    Plus all

    Plus all

    Creates a new instance with added stream values

    val a1: Refs[Char] = Refs.*('a', 'b', 'c')
    val a2: Refs[Char] = a1 +~ ~.*('x', 'y', 'z') +~ ('x' <> 'z')
    
    a1.all.lp // Prints: ~(a, b, c)
    a2.all.lp // Prints: ~(a, b, c, x, y, z, x, y, z)
    Definition Classes
    _libraryView
  6. def +~@(i: Int, v: ~[A]): Array[A]

    Plus stream at position

    Plus stream at position

    Creates a new instance with stream values added at specified position

    val a1: Refs[Char] = Refs.*('a', 'b', 'c')
    val a2: Refs[Char] = a1 +~@ (3, 'X' <> 'Z') +~@ (0, 'W' ~+ 'W' + 'W')
    
    a1.all.lp // Prints: ~(a, b, c)
    a2.all.lp // Prints: ~(W, W, W, a, b, c, X, Y, Z)
    Definition Classes
    _libraryView
  7. def -(v: A): Array[A]

    Subtract value

    Subtract value

    Creates a new instance with specified value removed

    // Generic Refs example
    val a1: Refs[Char] = ('a' <> 'g').all.to[Refs]
    val a2: Refs[Char] = a1 - 'b' - 'd' - 'f'
    
    a1.all.lp // Prints: ~(a, b, c, d, e, f, g)
    a2.all.lp // Prints: ~(a, c, e, g)
    Definition Classes
    _libraryView
  8. def -@(position: Int): Array._library.TYPE

    Subtract position

    Subtract position

    Creates a new instance with given position removed

    // Generic Refs example
    val a1: Refs[Char] = ('a' <> 'g').all.to[Refs]
    val a2: Refs[Char] = a1 -~ ('c' <> 'e')
    
    a1.all.lp // Prints: ~(a, b, c, d, e, f, g)
    a2.all.lp // Prints: ~(a, b, f, g)
    Definition Classes
    View
  9. def -@(r: Idx.Range): Array._library.TYPE

    Subtract range

    Subtract range

    Creates a new instance with elements within range removed

    // Generic Refs example
    val a1: Refs[Char] = ('a' <> 'g').all.to[Refs]
    val a2: Refs[Char] = a1 -~ ('c' <> 'e')
    
    a1.all.lp // Prints: ~(a, b, c, d, e, f, g)
    a2.all.lp // Prints: ~(a, b, f, g)
    Definition Classes
    View
  10. def -~(v: ~[A]): Array[A]

    Subtract all values

    Subtract all values

    Creates a new instance with all stream values removed

    // Generic Refs example
    val a1: Refs[Char] = ('a' <> 'g').all.to[Refs]
    val a2: Refs[Char] = a1 -~ ('c' <> 'e')
    
    a1.all.lp // Prints: ~(a, b, c, d, e, f, g)
    a2.all.lp // Prints: ~(a, b, f, g)
    Definition Classes
    _libraryView
  11. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
Linear Supertypes
Source: _library.scala