J.Array

trait Array extends Idx[Any]
trait Idx[Any]
trait Collection[Any]
trait Able.Size
trait Able.~[Any]
class java.lang.Object
trait scala.Matchable
class Any

Def

@scala.annotation.targetName("stream")
def ~: ~[Any]

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)
Inherited from
Idx
Source
__.scala
def apply(i: Int): Any

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
Inherited from
Idx
Source
__.scala
def boolean(i: Int): Boolean
def double(i: Int): Double
def int(i: Int): Int
override def isEmpty: Boolean

Empty check

Empty check

Returns true if instance is empty.

Definition Classes
Inherited from
Size
Source
Size.scala
def jArray(i: Int): J.Array
def jObject(i: Int): J.Object
def long(i: Int): Long
override def size: Int

Element count

Element count

Retuns element count

Definition Classes
Inherited from
Idx
Source
__.scala
def string(i: Int): String