nonDestructiveForEach

inline fun nonDestructiveForEach(fn: (T) -> Unit)

Calls the given function on every element in this Queue.

The elements will be passed to the given function in the order they appear in the Queue.

Unlike destructiveForEach, this method does not alter the queue.

Parameters

fn

Function that will be passed every element in this Queue.