Int.G.Pack

class Pack[A <: Any.Int] extends Val.Pack[A] with Int.G.Idx[A]

Int Specialized Generic Pack Collection

To be used with Int based opaque values.

Source
Pack.scala
trait Int.G.Idx[Int.G.Pack.A]
trait Int.G.Collection[Int.G.Pack.A]
trait Any.Z.PrimitiveTag.Int
trait Any.Z.PrimitiveTag
trait Able.Contain[Int.G.Pack.A]
class Pack[Int.G.Pack.A]
trait Idx[Int.G.Pack.A]
trait Collection[Int.G.Pack.A]
trait Able.Size
trait Able.Stream[Int.G.Pack.A]
class java.lang.Object
trait scala.Matchable
class Any

Def

@targetName("join")
inline def +(v: A): this.type

Alias for join

Alias for join

Creates a new Pack with given value appended to the end of current Pack

Inherited from
Pack
Source
__.scala
@targetName("joinAll")
inline def ++(v: Stream[A]): this.type

Alias for joinAll

Alias for joinAll

Creates a new Pack with given stream values appended to the end of current Pack

Inherited from
Pack
Source
__.scala
@targetName("joinAllAt")
inline def ++@(i: Int, v: Stream[A]): this.type

Alias for joinAllAt

Alias for joinAllAt

Creates a new Pack with given stream values inserted into current Pack at given position

Inherited from
Pack
Source
__.scala
@targetName("join")
inline def +@(i: Int, v: A): this.type

Alias for joinAt

Alias for joinAt

Creates a new Pack with given value inserted into current Pack at given position

Inherited from
Pack
Source
__.scala
def apply(i: Int): A
override def contains(v: A): Boolean
Definition Classes
Source
Pack.scala
inline def dropFirst(cnt: Int): this.type

Head reversed filter

Head reversed filter

Creates a new Pack from current Pack, skipping given number of first elements

Inherited from
Pack
Source
__.scala
inline def dropLast(cnt: Int): this.type

Tail reversed filter

Tail reversed filter

Creates a new Pack from current Pack, skipping given number of last elements

Inherited from
Pack
Source
__.scala
def dropRange(from: Int, sz: Int): Int.G.Pack[A]
inline def dropRange(r: Int.Range): this.type

Range reversed filter

Range reversed filter

Creates a new Pack from current Pack, skipping elements within given range

Inherited from
Pack
Source
__.scala
inline def foreach[U](f: A => U): Unit

Process all elements

Process all elements

Applies given function to each Pack element.

This method is more eficient than Stream foreach.

Inherited from
Pack
Source
__.scala
def join(v: A): Int.G.Pack[A]
def joinAll(vs: Stream[A]): Int.G.Pack[A]
def joinAllAt(i: Int, vs: Stream[A]): Int.G.Pack[A]
def joinAt(i: Int, v: A): Int.G.Pack[A]
def pack: Int.G.Pack[A]
inline def raw(using sp: Specialized.Primitive[A]): s.Pack

Specialize

Specialize

This operation will not compile for reference types

Returns specialized pack for undelying primitive type

Note: If this instance is already specialized, it is returned as is

Inherited from
Pack
Source
__.scala
def size: Int
override def stream: Int.G.Stream[A]
Definition Classes
Source
Pack.scala
inline def takeFirst(cnt: Int): this.type

Head filter

Head filter

Creates a new Pack from current Pack, taking only given number of first elements

Inherited from
Pack
Source
__.scala
inline def takeLast(cnt: Int): this.type

Tail filter

Tail filter

Creates a new Pack from current Pack, taking only given number of last elements

Inherited from
Pack
Source
__.scala
def takeRange(from: Int, sz: Int): Int.G.Pack[A]
inline def takeRange(r: Int.Range): this.type

Range filter

Range filter

Creates a new Pack from current Pack, taking only elements within given range

Inherited from
Pack
Source
__.scala