Packages

case class :+[A](tail: Stack[A], top: A) extends Stack[A] with Product with Serializable

A stack tail :+ top with top on the top of tail

Linear Supertypes
Serializable, Serializable, Product, Equals, Stack[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. :+
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Stack
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new :+(tail: Stack[A], top: A)

Value Members

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

    S++T result of pushing the whole stack T as is on top of the stack S.

    S++T result of pushing the whole stack T as is on top of the stack S.

    Definition Classes
    Stack
  4. def :+[B >: A](push: B): Stack[B]

    S:+b result of pushing b on top of the stack S.

    S:+b result of pushing b on top of the stack S.

    Definition Classes
    Stack
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. def drop(n: Int): Stack[A]

    Select all elements except the top n elements of this stack, or empty if there are not that many.

    Select all elements except the top n elements of this stack, or empty if there are not that many.

    Definition Classes
    :+Stack
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def find(p: (A) ⇒ Boolean): Option[A]

    Find the top-most element satisfying p, if any

    Find the top-most element satisfying p, if any

    Definition Classes
    Stack
  12. def fold[B](z: B)(f: (B, A) ⇒ B): B

    Fold the elements of this stack by f starting with z at the Bottom.

    Fold the elements of this stack by f starting with z at the Bottom.

    Definition Classes
    Stack
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def isEmpty: Boolean

    Whether this stack is empty

    Whether this stack is empty

    Definition Classes
    :+Stack
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def length: Int

    Number of elements on this stack

    Number of elements on this stack

    Definition Classes
    Stack
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def split[B >: A](p: (B) ⇒ Boolean): (Stack[B], Stack[B])

    Splits the stack at first occurrence of an element next s.t.

    Splits the stack at first occurrence of an element next s.t. p(next) = true; p is placed in the later stack.

    Definition Classes
    Stack
    Example:
    1. (A B C D E).split(C) = ( (A,B), (C, D, E) )

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. val tail: Stack[A]

    Tail of this stack, i.e.

    Tail of this stack, i.e. all but top element, or error if empty.

    Definition Classes
    :+Stack
  23. def take(n: Int): Stack[A]

    Select only the top n elements of this stack, or less if there are not that many.

    Select only the top n elements of this stack, or less if there are not that many.

    Definition Classes
    :+Stack
  24. def toList: List[A]

    Convert stack A,B,C where top = A to the list A :: B :: C :: Nil

    Convert stack A,B,C where top = A to the list A :: B :: C :: Nil

    Definition Classes
    Stack
  25. def toString(): String
    Definition Classes
    Stack → AnyRef → Any
  26. val top: A

    Top element of this stack or error if empty.

    Top element of this stack or error if empty.

    Definition Classes
    :+Stack
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Stack[A]

Inherited from AnyRef

Inherited from Any

Ungrouped