Package-level declarations

Types

Link copied to clipboard
class Stack<T> : Collection<T>

A simple stack implementation.

Functions

Link copied to clipboard
fun <T> stackOf(vararg items: T): Stack<T>

Creates a new Stack instance wrapping the given values.

fun <T> stackOf(items: Iterable<T>): Stack<T>

Creates a new Stack instance wrapping the values provided by the given iterable.