Idx.Selection.Observable

trait Observable[A] extends Idx.Selection[A] with Gen.O
trait Idx.Selection[Idx.Selection.Observable.A]
trait Able.Doc
trait Able.Tag
trait Idx[Idx.Selection.Observable.A]
trait Collection[Idx.Selection.Observable.A]
trait Able.Size
trait Able.Stream[Idx.Selection.Observable.A]
class java.lang.Object
trait scala.Matchable
class Any

Def

def apply(i: Int): A

Get value

Get value

Get selected value at given index

Inherited from
Selection
Source
__.scala
def doc: Doc
Inherited from
Selection
Source
__.scala
def indexes: Idx[Int]

Selected positions

Selected positions

Selected positions from target index

Note. positions.size == size

Inherited from
Selection
Source
__.scala
override def property(dflt: A): Pro.O[A]

Selected property

Selected property

Returns property instance wich will be updated real-time with the first selected value. Because the Selection can be empty, this property needs a default value to provide in this case.

Definition Classes
Source
Observable.scala
def size: Int

Count of selected values

Count of selected values

Returns total number of selected values

Inherited from
Selection
Source
__.scala
override def stream: Stream[A]

Returns a Stream of all elements

Returns a Stream of all elements

The element order is same as in the Idx itself

  val l: Idx[Char] = ('a' <> 'g').stream.pack

  l.stream.tp  // Prints Stream(a, b, c, d, e, f, g)
Definition Classes
Inherited from
Selection
Source
__.scala
def tag: String

Make String

Make String

tag returns this instance String representation, which should be used insted of toString

Inherited from
Doc
Source
Doc.scala
def target: Idx[A]

Selection target

Selection target

The Idx targeted by this selection

Inherited from
Selection
Source
__.scala
inline def value: A
Inherited from
Selection
Source
__.scala
def valueOpt: Opt[A]

Optional selected value

Optional selected value

Returns first selected value or void option, if selection is empty

Inherited from
Selection
Source
__.scala