final class IntArrayStack extends IndexedSeq[Int] with IndexedSeqOps[Int, Stack, IntArrayStack] with Cloneable[IntArrayStack] with Serializable
An array based implementation of a mutable stack of int
values which has a
given initial size. If the stack is non-empty, the index of the top value is 0
and the
index of the bottom value is (length-1
).
- Self Type
- IntArrayStack
- Source
- IntArrayStack.scala
- Alphabetic
- By Inheritance
- IntArrayStack
- Serializable
- IndexedSeq
- IndexedSeqOps
- IndexedSeq
- IndexedSeqOps
- Seq
- SeqOps
- Cloneable
- Cloneable
- Seq
- Equals
- SeqOps
- PartialFunction
- Function1
- Iterable
- Iterable
- IterableFactoryDefaults
- IterableOps
- IterableOnceOps
- IterableOnce
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new IntArrayStack(initialSize: Int = 4)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ++[B >: Int](suffix: IterableOnce[B]): Stack[B]
- Definition Classes
- IterableOps
- Annotations
- @inline()
- final def ++:[B >: Int](prefix: IterableOnce[B]): Stack[B]
- Definition Classes
- SeqOps → IterableOps
- Annotations
- @inline()
- final def +:[B >: Int](elem: B): Stack[B]
- Definition Classes
- SeqOps
- Annotations
- @inline()
- def +=(i: Int): IntArrayStack.this.type
The same as push but additionally returns
this
. - final def :+[B >: Int](elem: B): Stack[B]
- Definition Classes
- SeqOps
- Annotations
- @inline()
- final def :++[B >: Int](suffix: IterableOnce[B]): Stack[B]
- Definition Classes
- SeqOps
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def addString(b: StringBuilder): b.type
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def addString(b: StringBuilder, sep: String): b.type
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
- Definition Classes
- IterableOnceOps
- def andThen[C](k: PartialFunction[Int, C]): PartialFunction[Int, C]
- Definition Classes
- PartialFunction
- def andThen[C](k: (Int) => C): PartialFunction[Int, C]
- Definition Classes
- PartialFunction → Function1
- def appended[B >: Int](elem: B): Stack[B]
- Definition Classes
- SeqOps
- def appendedAll[B >: Int](suffix: IterableOnce[B]): Stack[B]
- Definition Classes
- SeqOps
- def apply(index: Int): Int
- Definition Classes
- IntArrayStack → SeqOps → Function1
- def applyOrElse[A1 <: Int, B1 >: Int](x: A1, default: (A1) => B1): B1
- Definition Classes
- PartialFunction
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canEqual(that: Any): Boolean
- Definition Classes
- Seq → Equals
- def className: String
- Attributes
- protected[this]
- Definition Classes
- Iterable
- def clone(): IntArrayStack
- Definition Classes
- IntArrayStack → SeqOps → Cloneable → AnyRef
- final def coll: IntArrayStack.this.type
- Attributes
- protected
- Definition Classes
- Iterable → IterableOps
- def collect[B](pf: PartialFunction[Int, B]): Stack[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def collectFirst[B](pf: PartialFunction[Int, B]): Option[B]
- Definition Classes
- IterableOnceOps
- def combinations(n: Int): Iterator[IntArrayStack]
- Definition Classes
- SeqOps
- def compose[R](k: PartialFunction[R, Int]): PartialFunction[R, Int]
- Definition Classes
- PartialFunction
- def compose[A](g: (A) => Int): (A) => Int
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- final def concat[B >: Int](suffix: IterableOnce[B]): Stack[B]
- Definition Classes
- SeqOps → IterableOps
- Annotations
- @inline()
- def contains[A1 >: Int](elem: A1): Boolean
- Definition Classes
- SeqOps
- def containsSlice[B >: Int](that: Seq[B]): Boolean
- Definition Classes
- SeqOps
- def copyToArray[B >: Int](xs: Array[B], start: Int, len: Int): Int
- Definition Classes
- IterableOnceOps
- def copyToArray[B >: Int](xs: Array[B], start: Int): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def copyToArray[B >: Int](xs: Array[B]): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def corresponds[B](that: Seq[B])(p: (Int, B) => Boolean): Boolean
- Definition Classes
- SeqOps
- def corresponds[B](that: IterableOnce[B])(p: (Int, B) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def count(p: (Int) => Boolean): Int
- Definition Classes
- IterableOnceOps
- def diff[B >: Int](that: Seq[B]): IntArrayStack
- Definition Classes
- SeqOps
- def distinct: IntArrayStack
- Definition Classes
- SeqOps
- def distinctBy[B](f: (Int) => B): IntArrayStack
- Definition Classes
- SeqOps
- def drop(n: Int): IntArrayStack
- Definition Classes
- IndexedSeqOps → IterableOps → IterableOnceOps
- def dropRight(n: Int): IntArrayStack
- Definition Classes
- IndexedSeqOps → IterableOps
- def dropWhile(p: (Int) => Boolean): IntArrayStack
- Definition Classes
- IterableOps → IterableOnceOps
- def elementWise: ElementWiseExtractor[Int, Int]
- Definition Classes
- PartialFunction
- def empty: IntArrayStack
- Definition Classes
- IntArrayStack → IterableFactoryDefaults → IterableOps
- def endsWith[B >: Int](that: Iterable[B]): Boolean
- Definition Classes
- SeqOps
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(o: Any): Boolean
- Definition Classes
- Seq → Equals → AnyRef → Any
- def exists(p: (Int) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def filter(pred: (Int) => Boolean): IntArrayStack
- Definition Classes
- IterableOps → IterableOnceOps
- def filterNot(pred: (Int) => Boolean): IntArrayStack
- Definition Classes
- IterableOps → IterableOnceOps
- def find(p: (Int) => Boolean): Option[Int]
- Definition Classes
- IterableOnceOps
- def findLast(p: (Int) => Boolean): Option[Int]
- Definition Classes
- SeqOps
- def flatMap[B](f: (Int) => IterableOnce[B]): Stack[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def flatten[B](implicit asIterable: (Int) => IterableOnce[B]): Stack[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def fold[A1 >: Int](z: A1)(op: (A1, A1) => A1): A1
- Definition Classes
- IterableOnceOps
- def foldLeft[B](z: B)(f: (B, Int) => B): B
- Definition Classes
- IntArrayStack → IterableOnceOps
- def foldRight[B](z: B)(op: (Int, B) => B): B
- Definition Classes
- IndexedSeqOps → IterableOnceOps
- def forall(p: (Int) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def foreach[U](f: (Int) => U): Unit
- Definition Classes
- IntArrayStack → IterableOnceOps
- def foreachReverse[U](f: (Int) => U): Unit
- def fromSpecific(coll: IterableOnce[Int]): IntArrayStack
- Definition Classes
- IntArrayStack → IterableFactoryDefaults → IterableOps
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def groupBy[K](f: (Int) => K): Map[K, IntArrayStack]
- Definition Classes
- IterableOps
- def groupMap[K, B](key: (Int) => K)(f: (Int) => B): Map[K, Stack[B]]
- Definition Classes
- IterableOps
- def groupMapReduce[K, B](key: (Int) => K)(f: (Int) => B)(reduce: (B, B) => B): Map[K, B]
- Definition Classes
- IterableOps
- def grouped(size: Int): Iterator[IntArrayStack]
- Definition Classes
- IterableOps
- def hashCode(): Int
- Definition Classes
- Seq → AnyRef → Any
- def head: Int
Same as
top()
, but potentially less efficient due to (un)boxing if the head method of the supertype is called.Same as
top()
, but potentially less efficient due to (un)boxing if the head method of the supertype is called.- Definition Classes
- IntArrayStack → IndexedSeqOps → IterableOps
- def headOption: Option[Int]
- Definition Classes
- IndexedSeqOps → IterableOps
- def indexOf[B >: Int](elem: B): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def indexOf[B >: Int](elem: B, from: Int): Int
- Definition Classes
- SeqOps
- def indexOfSlice[B >: Int](that: Seq[B]): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def indexOfSlice[B >: Int](that: Seq[B], from: Int): Int
- Definition Classes
- SeqOps
- def indexWhere(p: (Int) => Boolean): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def indexWhere(p: (Int) => Boolean, from: Int): Int
- Definition Classes
- SeqOps
- def indices: Range
- Definition Classes
- SeqOps
- def init: IntArrayStack
- Definition Classes
- IterableOps
- def inits: Iterator[IntArrayStack]
- Definition Classes
- IterableOps
- def intersect[B >: Int](that: Seq[B]): IntArrayStack
- Definition Classes
- SeqOps
- def isDefinedAt(idx: Int): Boolean
- Definition Classes
- SeqOps
- def isEmpty: Boolean
- Definition Classes
- IntArrayStack → SeqOps → IterableOnceOps
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraversableAgain: Boolean
- Definition Classes
- IterableOps → IterableOnceOps
- def iterableFactory: SeqFactory[Stack]
- Definition Classes
- IntArrayStack → IndexedSeq → IndexedSeq → Seq → Seq → Iterable → Iterable → IterableOps
- def iterator: IntIterator
Returns an iterator which produces the values in LIFO order.
Returns an iterator which produces the values in LIFO order.
- Definition Classes
- IntArrayStack → IndexedSeqOps → IterableOnce
- Note
The
next
method will throw anIndexOutOfBoundsException
when all elements are already returned.
- def knownSize: Int
- Definition Classes
- IndexedSeqOps → IterableOnce
- def last: Int
- Definition Classes
- IntArrayStack → IndexedSeqOps → IterableOps
- def lastIndexOf[B >: Int](elem: B, end: Int): Int
- Definition Classes
- SeqOps
- def lastIndexOfSlice[B >: Int](that: Seq[B]): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def lastIndexOfSlice[B >: Int](that: Seq[B], end: Int): Int
- Definition Classes
- SeqOps
- def lastIndexWhere(p: (Int) => Boolean): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def lastIndexWhere(p: (Int) => Boolean, end: Int): Int
- Definition Classes
- SeqOps
- def lastOption: Option[Int]
- Definition Classes
- IterableOps
- def lazyZip[B](that: Iterable[B]): LazyZip2[Int, B, IntArrayStack.this.type]
- Definition Classes
- Iterable
- def length: Int
- Definition Classes
- IntArrayStack → SeqOps
- final def lengthCompare(that: Iterable[_]): Int
- Definition Classes
- IndexedSeqOps → SeqOps
- final def lengthCompare(len: Int): Int
- Definition Classes
- IndexedSeqOps → SeqOps
- final def lengthIs: SizeCompareOps
- Definition Classes
- SeqOps
- Annotations
- @inline()
- def lift: (Int) => Option[Int]
- Definition Classes
- PartialFunction
- def map[B](f: (Int) => B): Stack[B]
- Definition Classes
- IndexedSeqOps → IterableOps → IterableOnceOps
- def mapInPlace(f: (Int) => Int): IntArrayStack.this.type
- Definition Classes
- IndexedSeqOps
- def max[B >: Int](implicit ord: Ordering[B]): Int
- Definition Classes
- IterableOnceOps
- def maxBy[B](f: (Int) => B)(implicit cmp: Ordering[B]): Int
- Definition Classes
- IterableOnceOps
- def maxByOption[B](f: (Int) => B)(implicit cmp: Ordering[B]): Option[Int]
- Definition Classes
- IterableOnceOps
- def maxOption[B >: Int](implicit ord: Ordering[B]): Option[Int]
- Definition Classes
- IterableOnceOps
- def min[B >: Int](implicit ord: Ordering[B]): Int
- Definition Classes
- IterableOnceOps
- def minBy[B](f: (Int) => B)(implicit cmp: Ordering[B]): Int
- Definition Classes
- IterableOnceOps
- def minByOption[B](f: (Int) => B)(implicit cmp: Ordering[B]): Option[Int]
- Definition Classes
- IterableOnceOps
- def minOption[B >: Int](implicit ord: Ordering[B]): Option[Int]
- Definition Classes
- IterableOnceOps
- final def mkString: String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(sep: String): String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(start: String, sep: String, end: String): String
- Definition Classes
- IterableOnceOps
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newSpecificBuilder: Builder[Int, IntArrayStack]
- Attributes
- protected
- Definition Classes
- IntArrayStack → IterableFactoryDefaults → IterableOps
- def nonEmpty: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def occCounts[B](sq: Seq[B]): Map[B, Int]
- Attributes
- protected[scala.collection]
- Definition Classes
- SeqOps
- def orElse[A1 <: Int, B1 >: Int](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
- Definition Classes
- PartialFunction
- def padTo[B >: Int](len: Int, elem: B): Stack[B]
- Definition Classes
- SeqOps
- def partition(p: (Int) => Boolean): (IntArrayStack, IntArrayStack)
- Definition Classes
- IterableOps
- def partitionMap[A1, A2](f: (Int) => Either[A1, A2]): (Stack[A1], Stack[A2])
- Definition Classes
- IterableOps
- def patch[B >: Int](from: Int, other: IterableOnce[B], replaced: Int): Stack[B]
- Definition Classes
- SeqOps
- def permutations: Iterator[IntArrayStack]
- Definition Classes
- SeqOps
- def pop(): Int
Returns and removes the top most value from the stack.
Returns and removes the top most value from the stack.
- Note
If the stack is empty a
NoSuchElementException
will be thrown.
- def prepended[B >: Int](elem: B): Stack[B]
- Definition Classes
- IndexedSeqOps → SeqOps
- def prependedAll[B >: Int](prefix: IterableOnce[B]): Stack[B]
- Definition Classes
- SeqOps
- def product[B >: Int](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def push(that: IntArrayStack): Unit
Pushes the value of the given stack on this stack while maintaining the order in which the values were pushed on the given stack.
Pushes the value of the given stack on this stack while maintaining the order in which the values were pushed on the given stack. I.e., if this contains the values
[1|2->
and the given one the values[3,4->
then the resulting stack will contain the values[1|2|3|4...
.- Note
In case of
++
the order of the values is reversed.
- def push(i: Int): Unit
- def reduce[B >: Int](op: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeft[B >: Int](op: (B, Int) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeftOption[B >: Int](op: (B, Int) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceOption[B >: Int](op: (B, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceRight[B >: Int](op: (Int, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceRightOption[B >: Int](op: (Int, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reverse: IntArrayStack
- Definition Classes
- IntArrayStack → IndexedSeqOps → SeqOps
- def reverseIterator: Iterator[Int]
- Definition Classes
- IndexedSeqOps → SeqOps
- def reversed: Iterable[Int]
- Attributes
- protected
- Definition Classes
- IndexedSeqOps → IterableOnceOps
- def runWith[U](action: (Int) => U): (Int) => Boolean
- Definition Classes
- PartialFunction
- def sameElements[B >: Int](that: IterableOnce[B]): Boolean
- Definition Classes
- SeqOps
- def scan[B >: Int](z: B)(op: (B, B) => B): Stack[B]
- Definition Classes
- IterableOps
- def scanLeft[B](z: B)(op: (B, Int) => B): Stack[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def scanRight[B](z: B)(op: (Int, B) => B): Stack[B]
- Definition Classes
- IterableOps
- def search[B >: Int](elem: B, from: Int, to: Int)(implicit ord: Ordering[B]): SearchResult
- Definition Classes
- IndexedSeqOps → SeqOps
- def search[B >: Int](elem: B)(implicit ord: Ordering[B]): SearchResult
- Definition Classes
- IndexedSeqOps → SeqOps
- def segmentLength(p: (Int) => Boolean, from: Int): Int
- Definition Classes
- SeqOps
- final def segmentLength(p: (Int) => Boolean): Int
- Definition Classes
- SeqOps
- final def size: Int
- Definition Classes
- SeqOps → IterableOnceOps
- final def sizeCompare(that: Iterable[_]): Int
- Definition Classes
- SeqOps → IterableOps
- final def sizeCompare(otherSize: Int): Int
- Definition Classes
- SeqOps → IterableOps
- final def sizeIs: SizeCompareOps
- Definition Classes
- IterableOps
- Annotations
- @inline()
- def slice(from: Int, until: Int): IntArrayStack
- Definition Classes
- IndexedSeqOps → IterableOps → IterableOnceOps
- def sliding(size: Int, step: Int): Iterator[IntArrayStack]
- Definition Classes
- IterableOps
- def sliding(size: Int): Iterator[IntArrayStack]
- Definition Classes
- IterableOps
- def sortBy[B](f: (Int) => B)(implicit ord: Ordering[B]): IntArrayStack
- Definition Classes
- SeqOps
- def sortInPlace[B >: Int]()(implicit ord: Ordering[B]): IntArrayStack.this.type
- Definition Classes
- IndexedSeqOps
- def sortInPlaceBy[B](f: (Int) => B)(implicit ord: Ordering[B]): IntArrayStack.this.type
- Definition Classes
- IndexedSeqOps
- def sortInPlaceWith(lt: (Int, Int) => Boolean): IntArrayStack.this.type
- Definition Classes
- IndexedSeqOps
- def sortWith(lt: (Int, Int) => Boolean): IntArrayStack
- Definition Classes
- SeqOps
- def sorted[B >: Int](implicit ord: Ordering[B]): IntArrayStack
- Definition Classes
- SeqOps
- def span(p: (Int) => Boolean): (IntArrayStack, IntArrayStack)
- Definition Classes
- IterableOps → IterableOnceOps
- def splitAt(n: Int): (IntArrayStack, IntArrayStack)
- Definition Classes
- IterableOps → IterableOnceOps
- def startsWith[B >: Int](that: IterableOnce[B], offset: Int): Boolean
- Definition Classes
- SeqOps
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[Int, S]): S with EfficientSplit
- Definition Classes
- IndexedSeqOps → IterableOnce
- def stringPrefix: String
- Attributes
- protected[this]
- Definition Classes
- IndexedSeq → Seq → Iterable
- def sum[B >: Int](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tail: IntArrayStack
- Definition Classes
- IterableOps
- def tails: Iterator[IntArrayStack]
- Definition Classes
- IterableOps
- def take(n: Int): IntArrayStack
- Definition Classes
- IndexedSeqOps → IterableOps → IterableOnceOps
- def takeRight(n: Int): IntArrayStack
- Definition Classes
- IndexedSeqOps → IterableOps
- def takeWhile(p: (Int) => Boolean): IntArrayStack
- Definition Classes
- IterableOps → IterableOnceOps
- def tapEach[U](f: (Int) => U): IntArrayStack
- Definition Classes
- IterableOps → IterableOnceOps
- def to[C1](factory: Factory[Int, C1]): C1
- Definition Classes
- IterableOnceOps
- def toArray: Array[Int]
- def toArray[B >: Int](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- IterableOnceOps
- final def toBuffer[B >: Int]: Buffer[B]
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def toIndexedSeq: IndexedSeq[Int]
- Definition Classes
- IterableOnceOps
- def toList: List[Int]
- Definition Classes
- IterableOnceOps
- def toMap[K, V](implicit ev: <:<[Int, (K, V)]): Map[K, V]
- Definition Classes
- IterableOnceOps
- def toSeq: Seq[Int]
- Definition Classes
- IterableOnceOps
- def toSet[B >: Int]: Set[B]
- Definition Classes
- IterableOnceOps
- def toString(): String
- Definition Classes
- IntArrayStack → Seq → Function1 → Iterable → AnyRef → Any
- def toVector: Vector[Int]
- Definition Classes
- IterableOnceOps
- def top(): Int
Returns the stack's top-most value.
Returns the stack's top-most value.
- Note
If the stack is empty a
NoSuchElementException
will be thrown.
- def transpose[B](implicit asIterable: (Int) => Iterable[B]): Stack[Stack[B]]
- Definition Classes
- IterableOps
- def unapply(a: Int): Option[Int]
- Definition Classes
- PartialFunction
- def unzip[A1, A2](implicit asPair: (Int) => (A1, A2)): (Stack[A1], Stack[A2])
- Definition Classes
- IterableOps
- def unzip3[A1, A2, A3](implicit asTriple: (Int) => (A1, A2, A3)): (Stack[A1], Stack[A2], Stack[A3])
- Definition Classes
- IterableOps
- def update(index: Int, v: Int): Unit
- Definition Classes
- IntArrayStack → SeqOps
- def updated[B >: Int](index: Int, elem: B): Stack[B]
- Definition Classes
- SeqOps
- def view: IndexedSeqView[Int]
- Definition Classes
- IndexedSeqOps → SeqOps → IterableOps
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withFilter(p: (Int) => Boolean): WithFilter[Int, [_]Stack[_]]
- Definition Classes
- IterableOps
- def zip[B](that: IterableOnce[B]): Stack[(Int, B)]
- Definition Classes
- IterableOps
- def zipAll[A1 >: Int, B](that: Iterable[B], thisElem: A1, thatElem: B): Stack[(A1, B)]
- Definition Classes
- IterableOps
- def zipWithIndex: Stack[(Int, Int)]
- Definition Classes
- IterableOps → IterableOnceOps
Deprecated Value Members
- final def /:[B](z: B)(op: (B, Int) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldLeft instead of /:
- final def :\[B](z: B)(op: (Int, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldRight instead of :\
- def aggregate[B](z: => B)(seqop: (B, Int) => B, combop: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0)
aggregate
is not relevant for sequential collections. UsefoldLeft(z)(seqop)
instead.
- def companion: IterableFactory[[_]Stack[_]]
- Definition Classes
- IterableOps
- Annotations
- @deprecated @deprecatedOverriding() @inline()
- Deprecated
(Since version 2.13.0) Use iterableFactory instead
- final def copyToBuffer[B >: Int](dest: Buffer[B]): Unit
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
dest ++= coll
instead
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def hasDefiniteSize: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
- final def prefixLength(p: (Int) => Boolean): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use segmentLength instead of prefixLength
- final def repr: IntArrayStack
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use coll instead of repr in a collection implementation, use the collection value itself from the outside
- def reverseMap[B](f: (Int) => B): Stack[B]
- Definition Classes
- SeqOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .reverseIterator.map(f).to(...) instead of .reverseMap(f)
- def seq: IntArrayStack.this.type
- Definition Classes
- Iterable
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Iterable.seq always returns the iterable itself
- final def toIterable: IntArrayStack.this.type
- Definition Classes
- Iterable → IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.7) toIterable is internal and will be made protected; its name is similar to
toList
ortoSeq
, but it doesn't copy non-immutable collections
- final def toIterator: Iterator[Int]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator instead of .toIterator
- final def toStream: Stream[Int]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .to(LazyList) instead of .toStream
- final def toTraversable: Traversable[Int]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) toTraversable is internal and will be made protected; its name is similar to
toList
ortoSeq
, but it doesn't copy non-immutable collections
- final def transform(f: (Int) => Int): IntArrayStack.this.type
- Definition Classes
- SeqOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
mapInPlace
on anIndexedSeq
instead
- final def union[B >: Int](that: Seq[B]): Stack[B]
- Definition Classes
- SeqOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
concat
instead
- def view(from: Int, until: Int): IndexedSeqView[Int]
- Definition Classes
- IndexedSeqOps → IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .view.slice(from, until) instead of .view(from, until)