J.Util.Proxy.Idx.Basis

trait Basis[A] extends Idx[A] with J.Util.Proxy.Collection.Basis[A] with J.Util.Proxy[Idx[A]]
Source
Idx.scala
trait J.Util.Proxy[Idx[A]]
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]

Stream elements

Stream elements

Returns a stream of all collection elements

Unless specifically defined, the order must be assumed as random

  val c = Collection(1,3,5,7)
  c.~.tp

  // Output
  ~(1, 3, 5, 7)
Definition Classes
Source
Idx.scala
override def apply(i: Int): A

Returns element at specified position

Returns element at specified position

 val idx: Idx[Char] = ('A' <> 'Z').~.><

 idx(1).tp // Prints: B

 idx(4).tp // Prints: E
Definition Classes
Source
Idx.scala
override def isEmpty: Boolean

Empty check

Empty check

Returns true if instance is empty.

Definition Classes
Inherited from
Size
Source
Size.scala
override def size: Int

Element count

Element count

Retuns element count

Definition Classes
Inherited from
Basis
Source
Collection.scala