toQueue

inline fun <T> Iterable<T>.toQueue(): Queue<T>

Returns a Queue containing all elements.

Example:

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

Since

1.1.0