toStack

inline fun <T> Iterable<T>.toStack(): Stack<T>

Returns a Stack containing all elements.

Example:

(1..10).toStack() // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

Since

1.1.0