J.Array

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

Def

def apply(i: Int): Any

Returns element at specified position

Returns element at specified position

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

 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
def jArray(i: Int): J.Array
def jObject(i: Int): J.Object
def long(i: Int): Long
def size: Int
Inherited from
Idx
Source
__.scala
def stream: Stream[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').stream.pack

  l.stream.tp  // Prints Stream(a, b, c, d, e, f, g)
Inherited from
Idx
Source
__.scala
def string(i: Int): String