index

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

Returns the position of the first element in @queue which contains @data.

Return

the position of the first element in @queue which contains @data, or -1 if no element in @queue contains @data

Since

2.4

Parameters

data

the data to find