// Create a queue from varargs!
val queue = queueOf(1, 2, 3)
// Create a queue from a collection!
val queue = queueOf(list(1, 2, 3))
// Create a queue the boring way!
val queue = Queue<Int>()
// Get crazy with it!
val queue = Queue<Int>(
initialCapacity = 16,
scaleFactor = 2F,
maxSize = 64
)
// Put stuff into a queue!
queue.append(4)
// Get stuff out!
val nextValue = queue.next()
// Iterate!
for (item in queue)
println("Another one popped off the queue!")
Version | Documentation | Description |
---|---|---|
|
Add |
|
|
Breaking minor rewrite, see release notes. |
|
|
Add |
|
|
Initial release. |