Idx

object Idx
Source
__.scala
class java.lang.Object
trait scala.Matchable
class Any

Member

trait Mutable[A] extends Idx[A] with Collection.M[A] with Able.Contain[A]

Mutable Indexed Collection

Mutable indexed collection provides methods to modify its content based on element position

Source
__.scala
trait Mutable[A] extends Idx[A] with Collection.M[A] with Able.Contain[A]

Mutable Indexed Collection

Mutable indexed collection provides methods to modify its content based on element position

Source
__.scala
trait Observable[A] extends Idx[A] with Collection.O[A]

Observable Indexed Collection

Observable Idx collection allows to track all the changes by subscribing to onChange event

Source
__.scala
trait Observable[A] extends Idx[A] with Collection.O[A]

Observable Indexed Collection

Observable Idx collection allows to track all the changes by subscribing to onChange event

Source
__.scala

Permutation is a precise definition on how elements within index range should be reorganized

Consider ordering a buffer of integers. This could be accomplished it two steps:

  1. Based on some Ordering, we create a Permutation object, which captures all necessary positions
  2. Apply permutation to the buffer
  val buf = Stream(0, 3, 1, 2, 4).toBuffer

  buf.stream.tp // Prints:  Stream(0, 3, 1, 2, 4)

  // Creating permutation based on given ordering
  val p = Idx.Permutation.sorting(buffer)

  p.tp               // Prints: Permutation{range=1 <>> 4,(1,3)(2,1)(3,2)}

  p.reposition(buf)  // Applying permutation

  buf.stream.tp           // Prints Stream(0, 1, 2, 3, 4)
Source
__.scala

Permutation is a precise definition on how elements within index range should be reorganized

Consider ordering a buffer of integers. This could be accomplished it two steps:

  1. Based on some Ordering, we create a Permutation object, which captures all necessary positions
  2. Apply permutation to the buffer
  val buf = Stream(0, 3, 1, 2, 4).toBuffer

  buf.stream.tp // Prints:  Stream(0, 3, 1, 2, 4)

  // Creating permutation based on given ordering
  val p = Idx.Permutation.sorting(buffer)

  p.tp               // Prints: Permutation{range=1 <>> 4,(1,3)(2,1)(3,2)}

  p.reposition(buf)  // Applying permutation

  buf.stream.tp           // Prints Stream(0, 1, 2, 3, 4)
Source
__.scala
trait Selection[A] extends Idx[A] with Able.Doc

Lists selected values for some target indexed collection

Source
__.scala
trait Selection[A] extends Idx[A] with Able.Doc

Lists selected values for some target indexed collection

Source
__.scala
object X

Type Extentions

This object contains all provided base type implementations

Source
X.scala

Alias

Alias

Alias

Shortcut to Idx.Observable.Event

Source
__.scala

Alias

Alias

Shortcut to Idx.Observable.Event

Source
__.scala
type M[A] = Idx.Mutable[A]

Alias

Alias

Shortcut to Idx.Mutable

Source
__.scala
inline def M: Idx.Mutable

Alias

Alias

Shortcut to Idx.Mutable

Source
__.scala
type O[A] = Idx.Observable[A]

Alias

Alias

Shortcut to Idx.Observable

Source
__.scala
inline def O: Idx.Observable

Alias

Alias

Shortcut to Idx.Observable

Source
__.scala

Alias

Alias

Shortcut to Idx.ObservableMutable

Source
__.scala

Alias

Alias

Shortcut to Idx.ObservableMutable

Source
__.scala

Def

def apply[A](v: A): Idx[A]
Source
__.scala
def apply[A](v1: A, v2: A): Idx[A]
Source
__.scala
def apply[A](v1: A, v2: A, v3: A, vs: A*): Idx[A]
Source
__.scala
def unapplySeq[A](v: Idx[A]): scala.Option[scala.collection.immutable.Seq[A]]
Source
__.scala
@targetName("getVoid")
inline def void[A]: Idx[A]

Get void instance

Get void instance

Source
__.scala
def wrap[A](v: java.util.List[A]): Idx[A]
Source
__.scala

Implicit

implicit inline def implicitRequest[A](v: VOID): Idx[A]

General void instance request

General void instance request

It is possible to use general request VOID to get void instance of this type, thanks to this implicit conversion.

Source
__.scala