A class supporting filtered operations .
[use case] Concatenates this stack with the elements of a traversable collection .
Concatenates this stack with the elements of a traversable collection .
[use case] Prepends an element to this stack
Prepends an element to this stack
Applies a binary operator to a start value and all elements of this stack, going left to right .
[use case] Appends an element to this stack
Appends an element to this stack
Applies a binary operator to all elements of this stack and a start value, going right to left .
Appends all elements of this stack to a string builder .
Appends all elements of this stack to a string builder using a separator string .
Appends all elements of this stack to a string builder using start, end, and separator strings .
Composes this partial function with a transformation function that gets applied to results of this partial function .
Retrieve n'th element from stack, where top of stack has index 0@return the element of this stack at index idx
, where 0
indicates the first element.
Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind .
Removes all elements from the stack .
This method clones the stack .
[use case] Builds a new collection by applying a partial function to all elements of this stack on which the function is defined .
Builds a new collection by applying a partial function to all elements of this stack on which the function is defined .
The factory companion object that builds instances of class Stack .
(f compose g)(x) == f(g(x))
Tests whether this stack contains a given value as an element .
Tests whether this stack contains a given sequence as a slice .
[use case] Copies elements of this stack to an array .
Copies elements of this stack to an array .
[use case] Copies values of this stack to an array .
Copies values of this stack to an array .
[use case] Copies values of this stack to an array .
Copies values of this stack to an array .
Copies all elements of this stack to a buffer .
Tests whether every element of this stack relates to the corresponding element of another sequence by satisfying a test predicate .
Counts the number of elements in the stack which satisfy a predicate .
[use case] Computes the multiset difference between this stack and another sequence .
Computes the multiset difference between this stack and another sequence .
Builds a new stack from this stack without any duplicate elements .
Selects all elements except first n ones.
Selects all elements except last n ones.
Drops longest prefix of elements that satisfy a predicate .
Tests whether this stack ends with the given sequence .
The equality method defined in AnyRef
.
Tests whether every element of this stack relates to the corresponding element of another sequence by satisfying a test predicate .
Tests whether a predicate holds for some of the elements of this stack .
Selects all elements of this stack which satisfy a predicate .
Selects all elements of this stack which do not satisfy a predicate .
Finds the first element of the stack satisfying a predicate, if any .
Returns index of the first element satisfying a predicate, or -1
.
Returns index of the last element satisfying a predicate, or -1 .
None
if iterable is empty.
[use case] Builds a new collection by applying a function to all elements of this stack and concatenating the results .
Builds a new collection by applying a function to all elements of this stack and concatenating the results .
[use case] Converts this stack of traversable collections into a stack in which all element collections are concatenated .
Converts this stack of traversable collections into a stack in which all element collections are concatenated .
Applies a binary operator to a start value and all elements of this stack, going left to right .
Applies a binary operator to all elements of this stack and a start value, going right to left .
Tests whether a predicate holds for all elements of this stack .
[use case] Applies a function f
to all elements of this stack.
Applies a function f
to all elements of this stack.
The generic builder that builds instances of Stack at arbitrary element types .
Partitions this stack into a map of stacks according to some discriminator function .
Partitions elements in fixed size stacks .
Tests whether this stack is known to have a finite size .
Hashcodes for Stack produce a value from the hashcodes of all the elements of the stack .
Selects the first element of this stack .
Optionally selects the first element .
[use case] Finds index of first occurrence of some value in this stack after or at some start index .
Finds index of first occurrence of some value in this stack after or at some start index .
[use case] Finds index of first occurrence of some value in this stack .
Finds index of first occurrence of some value in this stack .
Finds first index after or at a start index where this stack contains a given sequence as a slice .
Finds first index where this stack contains a given sequence as a slice .
Finds index of the first element satisfying some predicate after or at some start index .
Finds index of first element satisfying some predicate .
Produces the range of all indices of this sequence .
Selects all elements except the last .
[use case] Computes the multiset intersection between this stack and another sequence .
Computes the multiset intersection between this stack and another sequence .
Tests whether this stack contains given index .
Checks if the stack is empty .
Tests whether this stack can be repeatedly traversed .
Returns an iterator over all elements on the stack .
Selects the last element .
[use case] Finds index of last occurrence of some value in this stack before or at a given end index .
Finds index of last occurrence of some value in this stack before or at a given end index .
[use case] Finds index of last occurrence of some value in this stack .
Finds index of last occurrence of some value in this stack .
Finds last index before or at a given end index where this stack contains a given sequence as a slice .
Finds last index where this stack contains a given sequence as a slice .
Finds index of last element satisfying some predicate before or at given end index .
Finds index of last element satisfying some predicate .
Optionally selects the last element .
The number of elements in the stack@return the number of elements in this stack .
Compares the length of this stack to a test value .
Turns this partial function into an plain function returning an Option
result.
[use case] Builds a new collection by applying a function to all elements of this stack .
Builds a new collection by applying a function to all elements of this stack .
[use case] Finds the largest element .
Finds the largest element .
[use case] Finds the smallest element .
Finds the smallest element .
Displays all elements of this stack in a string .
Displays all elements of this stack in a string using a separator string .
Displays all elements of this stack in a string using start, end, and separator strings .
Tests whether the stack is not empty .
Composes this partial function with a fallback partial function which gets applied where this partial function is not defined .
[use case] Appends an element value to this stack until a given target length is reached .
Appends an element value to this stack until a given target length is reached .
Partitions this stack in two stacks according to a predicate .
[use case] Produces a new stack where a slice of elements in this stack is replaced by another sequence .
Produces a new stack where a slice of elements in this stack is replaced by another sequence .
Removes the top element from the stack .
Returns the length of the longest prefix whose elements all satisfy some predicate .
[use case] Multiplies up the elements of this collection .
Multiplies up the elements of this collection .
returns a projection that can be used to call non-strict filter, map, and flatMap methods that build projections of the collection .
Push two or more elements onto the stack .
Push an element on the stack .
Push all elements in the given traversable object onto the stack .
Applies a binary operator to all elements of this stack, going left to right .
Optionally applies a binary operator to all elements of this stack, going left to right .
Applies a binary operator to all elements of this stack, going right to left .
Optionally applies a binary operator to all elements of this stack, going right to left .
The collection of type stack underlying this TraversableLike
object.
Returns new stack wih elements in reversed order .
An iterator yielding elements in reversed order .
[use case] Builds a new collection by applying a function to all elements of this stack and collecting the results in reversed order .
Builds a new collection by applying a function to all elements of this stack and collecting the results in reversed order .
[use case] Checks if the other iterable collection contains the same elements in the same order as this stack .
Checks if the other iterable collection contains the same elements in the same order as this stack .
Produces a collection containing cummulative results of applying the operator going left to right .
Produces a collection containing cummulative results of applying the operator going right to left .
Computes length of longest segment whose elements all satisfy some predicate .
The size of this stack, equivalent to length
.
Selects an interval of elements .
Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped .
Sorts this Stack according to the Ordering which results from transforming an implicitly given Ordering with a transformation function .
Sorts this stack according to a comparison function .
Sorts this stack according to an Ordering .
Splits this stack into a prefix/suffix pair according to a predicate .
Splits this stack into two at a given position .
Tests whether this stack starts with the given sequence .
Tests whether this stack contains the given sequence at a given index .
Defines the prefix of this object's toString
representation.
[use case] Sums up the elements of this collection .
Sums up the elements of this collection .
Selects all elements except the first .
Selects first n elements.
Selects last n elements.
Takes longest prefix of elements that satisfy a predicate .
[use case] Converts this stack to an array .
Converts this stack to an array .
Converts this stack to an indexed sequence .
Converts this stack to an iterable collection .
Returns an Iterator over the elements in this stack .
Creates a list of all stack elements in LIFO order .
Converts this stack to a map .
Converts this stack to a sequence .
Converts this stack to a set .
Converts this stack to a stream .
Converts this stack to a string .
Converts this stack to an unspecified Traversable .
Returns the top element of the stack .
Transposes this stack of traversable collections into a stack of stacks .
[use case] Produces a new sequence which contains all elements of this stack and also all elements of a given sequence .
Produces a new sequence which contains all elements of this stack and also all elements of a given sequence .
Converts this stack of pairs into two collections of the first and second halfs of each pair .
[use case] A copy of this stack with one single replaced element .
A copy of this stack with one single replaced element .
Creates a non-strict view of a slice of this stack .
Creates a non-strict view of this stack .
Creates a non-strict filter of this stack .
[use case] Returns a stack formed from this stack and another iterable collection by combining corresponding elements in pairs .
Returns a stack formed from this stack and another iterable collection by combining corresponding elements in pairs .
[use case] Returns a stack formed from this stack and another iterable collection by combining corresponding elements in pairs .
Returns a stack formed from this stack and another iterable collection by combining corresponding elements in pairs .
[use case] Zips this stack with its indices .
Zips this stack with its indices .
A stack implements a data structure which allows to store and retrieve objects in a last-in-first-out (LIFO) fashion .
type of the elements contained in this stack .
version
2 . 8
since
1
authors: ,
Martin Odersky
Matthias Zenger