destructiveForEach

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

Calls the given function on every element in this Queue as each element is removed.

The elements will be passed to the given function in the order they are popped from the Queue.

Parameters

fn

Function that will be passed every element in this Queue as each element is removed.