J.Util.Proxy.Idx

abstract class Idx[A] extends J.Util.Proxy.Collection[A] with J.Util.Proxy.Idx.Base[A]
Source
Idx.scala
trait J.Util.Proxy.Idx.Base[J.Util.Proxy.Idx.A]
trait Idx[J.Util.Proxy.Idx.A]
class J.Util.Proxy.Collection[J.Util.Proxy.Idx.A]
trait J.Util.Proxy.Collection.Base[J.Util.Proxy.Idx.A]
trait J.Util.Proxy[Idx[J.Util.Proxy.Idx.A]]
trait Collection[J.Util.Proxy.Idx.A]
trait Able.Size
trait Able.Stream[J.Util.Proxy.Idx.A]
class java.lang.Object
trait scala.Matchable
class Any
class J.Util.Proxy.Idx.M[J.Util.Proxy.Idx.M.A]
class J.Util.Proxy.Idx.OM[J.Util.Proxy.Idx.OM.A]
class J.Util.Proxy.Idx.O[J.Util.Proxy.Idx.O.A]

Def

override def apply(i: Int): A

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
Definition Classes
Inherited from
Base
Source
Idx.scala
override def size: Int
Definition Classes
Inherited from
Base
Source
Collection.scala
override def stream: Stream[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.stream.tp

  // Output
  Stream(1, 3, 5, 7)
Definition Classes
Source
Idx.scala