final class FrontStack[+A] extends AnyRef

A stack which allows to cons, prepend, and pop in constant time, and generate an ImmArray in linear time. Very useful when needing to traverse stuff in topological order or similar situations.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FrontStack
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++:[B >: A](xs: ImmArray[B]): FrontStack[B]

    O(1)

  4. def +:[B >: A](x: B): FrontStack[B]

    O(1)

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def canEqual(that: Any): Boolean

    O(1)

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(that: Any): Boolean

    O(n)

    O(n)

    Definition Classes
    FrontStack → AnyRef → Any
  11. def foreach(f: (A) => Unit): Unit

    O(n)

  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    FrontStack → AnyRef → Any
  14. def isEmpty: Boolean

    O(1)

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def iterator: Iterator[A]

    O(1)

  17. val length: Int
  18. def map[B](f: (A) => B): FrontStack[B]

    O(n)

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def nonEmpty: Boolean

    O(1)

  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  23. def pop: Option[(A, FrontStack[A])]

    O(1)

  24. def slowApply(ix: Int): A

    O(n)

    O(n)

    Annotations
    @throws(scala.this.throws.<init>$default$1[IndexOutOfBoundsException])
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toBackStack: BackStack[A]

    O(n)

  27. def toImmArray: ImmArray[A]

    O(n)

  28. def toString(): String

    O(n)

    O(n)

    Definition Classes
    FrontStack → AnyRef → Any
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped