trait _library[A] extends Idx._library[A] with Any.Wrap[Idx.O[A]]

Ordering
  1. Alphabetic
Inherited
  1. O._library
  2. Idx._library
  3. Any.Wrap
  4. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Method

  1. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  2. def asJavaListView: List[A]

    Java List view

    Java List view

    Creates view of this as Java List

    Definition Classes
    _library
  3. def asMappedView[B](f: (A) ⇒ B): O[B]
    Definition Classes
    _library_library
  4. def asMutableView: Idx.M[A]

    Mutable view

    Mutable view

    If this implements writable, this is returned

    Otherwise, returns view of this as writable, where any change will App.Fail.unsupported

    Definition Classes
    _library
  5. def asObservableMutableView: OM[A]

    Mutable observable view

    Mutable observable view

    If this implements OM, this is returned

    Otherwise, returns view of this as OM, where any change will App.Fail.unsupported and no events will be generated

    Definition Classes
    _library
  6. def asObservableView: O[A]

    Observable view

    Observable view

    If this implements Observable, this is returned

    Otherwise, returns view of this as Observable, without generating events

    Definition Classes
    _library
  7. def asRangeView(r: Idx.Range): Idx[A]

    Range projected view

    Range projected view

    Creates view of this projected on provided range

    Definition Classes
    _library
  8. def asReversedView: O[A]
    Definition Classes
    _library_library
  9. def asSeqView: IndexedSeq[A]
    Definition Classes
    _library
  10. def asStatefullMapView[B](f: (A) ⇒ B): O[B]
    Definition Classes
    _library
  11. def asSynchronizedView(lockOpt: Opt[AnyRef] = \/): O[A]

    Synchronized view

    Synchronized view

    Creates view of this' with all access synchronized

    Definition Classes
    _library_library
  12. def asTailView(from: Int): O[A]

    Tail view

    Tail view

    Creates view of this as last elements starting fromPosition

    Definition Classes
    _library_library
  13. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  14. def first: A

    First element

    First element

    Returns first element or App.Fail for empty collection

    Definition Classes
    _library
  15. def firstOpt: Opt[A]

    First element

    First element

    Returns first element or Opt.Void for empty collection

    Definition Classes
    _library
  16. def getOpt(position: Int): Opt[A]

    Element at position

    Element at position

    Returns element at given position or Opt.Void if position is out of Idx range

    Definition Classes
    _library
  17. def hashCode(): Int
    Definition Classes
    Any
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def last: A

    Last element

    Last element

    Returns last element or App.Fail for empty collection

    Definition Classes
    _library
  20. def lastOpt: Opt[A]

    Last element

    Last element

    Returns last element or Opt.Void for empty collection

    Definition Classes
    _library
  21. abstract def real: O[A]
    Attributes
    protected
    Definition Classes
    _Trait
  22. def searchOrdered(element: A, maxFound: Int = 1)(implicit s: Ordering[A]): Idx.Range

    Binary search

    Binary search

    Efficient search for the element, without scanning the entire index

    The elements have to be already sorted with the ordering provided, otherwise results are random

    Returns Idx.Range, where range.start indicates position of the element. If range.size==0, then no element found, just its logical position.

    val x: Idx[Int] = (1 ~+ 2 + 3 + 5).flatMap(_.I repeat 4).to[Idx]
    
    x.all.zipIdx.tp
    // Output
    -- -
    ?  ?
    -- -
    0  1
    1  1
    2  1
    3  1
    4  2
    5  2
    6  2
    7  2
    8  3
    9  3
    10 3
    11 3
    12 5
    13 5
    14 5
    15 5
    -- -
    
    x.searchOrdered(0).lp    // Prints: 0 <>> 0
    x.searchOrdered(2).lp    // Prints: 4 <>> 5
    x.searchOrdered(2, 5).lp // Prints: 4 <>> 8
    x.searchOrdered(4).lp    // Prints: 12 <>> 12
    x.searchOrdered(6).lp    // Prints: 16 <>> 16
    maxFound

    maximum found returned range size. The returned range indicates how many elements found up to the max

    Definition Classes
    _library
    Annotations
    @noinline()
  23. def searchOrderedBy[B](map: (A) ⇒ B, value: B, maxFound: Int = 1, extraFilter: Opt[(A) ⇒ Boolean] = \/)(implicit s: Ordering[B]): Idx.Range

    Binary search by property

    Binary search by property

    Efficient search for the element, based on its property value, without scanning the entire index

    The elements have to be already sorted by the property with the ordering provided, otherwise results are random

    Returns Idx.Range, where range.start indicates position of the element. If range.size==0, then no element found, just its logical position.

    val x: Idx[String] = ("1" ~+ "2" + "3" + "5").repeat(4).to[Idx]
    
    x.all.zipIdx.tp
    // Output
    -- -
    ?  ?
    -- -
    0  1
    1  1
    2  1
    3  1
    4  2
    5  2
    6  2
    7  2
    8  3
    9  3
    10 3
    11 3
    12 5
    13 5
    14 5
    15 5
    -- -
    
    x.searchOrderedBy(_.toInt, 0).lp    // Prints: 0 <>> 0
    x.searchOrderedBy(_.toInt, 2).lp    // Prints: 4 <>> 5
    x.searchOrderedBy(_.toInt, 2, 5).lp // Prints: 4 <>> 8
    x.searchOrderedBy(_.toInt, 4).lp    // Prints: 12 <>> 12
    x.searchOrderedBy(_.toInt, 6).lp    // Prints: 16 <>> 16
    map

    property function

    maxFound

    maximum found returned range size. The returned range indicates how many elements found up to the max

    Definition Classes
    _library
    Annotations
    @noinline()
  24. def toString(): String
    Definition Classes
    Any
  25. def toTuple2: (A, A)

    As Tuple2

    As Tuple2

    Returns first two elements as tuple

    Definition Classes
    _library
  26. def toTuple3: (A, A, A)

    As Tuple3

    As Tuple3

    Returns first three elements as tuple

    Definition Classes
    _library
  27. def toTuple4: (A, A, A, A)

    As Tuple4

    As Tuple4

    Returns first four elements as tuple

    Definition Classes
    _library

Operator

  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
Linear Supertypes
Known Subclasses
Source: _library.scala