pushHead

fun pushHead(data: <Error class: unknown class>? = null)

Adds a new element at the head of the queue.

Parameters

data

the data for the new element.