Indexed Collection
Elements in Idx can be efficiently accessed with Int index starting from 0
- Source
- __.scala
trait Collection[Idx.A]
trait Able.Size
trait Able.Stream[Idx.A]
class java.lang.Object
trait scala.Matchable
class Any
trait J.Array
trait J.Array.Mutable
class J.Array.Mutable.X.Basic
class Pack[Pack.A]
class Boolean.G.Pack[Boolean.G.Pack.A]
object Boolean.G.Pack.Z_Void
class Byte.G.Pack[Byte.G.Pack.A]
object Byte.G.Pack.Z_Void
class Char.G.Pack[Char.G.Pack.A]
object Char.G.Pack.Z_Void
class Double.G.Pack[Double.G.Pack.A]
object Double.G.Pack.Z_Void
class Float.G.Pack[Float.G.Pack.A]
object Float.G.Pack.Z_Void
class Int.G.Pack[Int.G.Pack.A]
class Long.G.Pack[Long.G.Pack.A]
object Long.G.Pack.Z_Void
class Short.G.Pack[Short.G.Pack.A]
object Short.G.Pack.Z_Void
trait Idx.Mutable[Idx.Mutable.A]
trait Idx.ObservableMutable[Idx.ObservableMutable.A]
class Idx.ObservableMutable.X.Abstract[Idx.ObservableMutable.X.Abstract.A]
class Idx.ObservableMutable.X.Basic[Idx.ObservableMutable.X.Basic.A]
class Idx.Mutable.X.Abstract[Idx.Mutable.X.Abstract.A]
class Idx.Observable.Event.Recorder[Idx.Observable.Event.Recorder.A]
trait Idx.Observable[Idx.Observable.A]
class Idx.Observable.X.Abstract[Idx.Observable.X.Abstract.A]
trait Idx.Observable.X.Base[Idx.Observable.X.Base.A]
trait Idx.Selection[Idx.Selection.A]
trait Idx.Selection.Observable[Idx.Selection.Observable.A]
class Idx.X.Abstract[Idx.X.Abstract.A]
Def
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
- Source
- __.scala
Extension
First optional element
First optional element
Returns first elements or empty option for empty Idx
- Source
- __.scala
def orderedSearchBy[A](map: A => B, v: B, max: Int, extraFilter: A => Boolean)(using Ordering[B]): Int.Range
- Source
- __.scala