Idx.Selection

trait Selection[A] extends Idx[A] with Able.Doc

Lists selected values for some target indexed collection

Source
__.scala
trait Able.Doc
trait Able.Tag
trait Idx[A]
trait Collection[A]
trait Able.Size
trait Able.~[A]
class java.lang.Object
trait scala.Matchable
class Any

Def

@scala.annotation.targetName("stream")
override def ~: ~[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').~.><

  l.~.tp  // Prints ~(a, b, c, d, e, f, g)
Definition Classes
Source
__.scala
def apply(i: Int): A

Get value

Get value

Get selected value at given index

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

Selected positions

Selected positions

Selected positions from target index

Note. positions.size == size

Source
__.scala
override def isEmpty: Boolean

Empty check

Empty check

Returns true if instance is empty.

Definition Classes
Inherited from
Size
Source
Size.scala
def property(dflt: A): Pro[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.

Source
__.scala
def size: Int

Count of selected values

Count of selected values

Returns total number of selected values

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

Source
__.scala
inline def value: A
Source
__.scala
@scala.annotation.targetName("value_Opt")
def value_?: Opt[A]

Optional selected value

Optional selected value

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

Source
__.scala