queueOf

inline fun <T> queueOf(): Queue<T>

Return an empty new Queue.

Since

1.1.0

See also


inline fun <T> queueOf(vararg elements: T): Queue<T>

Returns a Queue of given elements.

Since

1.1.0

See also


fun queueOf(range: IntRange): Queue<Int>

Return an integer Queue from int range.

Example:

queueOf(1..10) // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

Since

1.1.0

See also


fun queueOf(range: UIntRange): Queue<UInt>

Return an un-sign integer Queue from un-sign int range.

Example:

queueOf(1u..10u) // [1u, 2u, 3u, 4u, 5u, 6u, 7u, 8u, 9u, 10u]

Since

1.1.0

See also


fun queueOf(range: LongRange): Queue<Long>

Return a long Queue from long range.

Example:

queueOf(1..10L) // [1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L]

Since

1.1.0

See also


fun queueOf(range: ULongRange): Queue<ULong>

Return an un-sign long Queue from un-sign long range.

Example:

queueOf(1uL..10uL) // [1ul, 2uL, 3uL, 4uL, 5uL, 6uL, 7uL, 8uL, 9uL, 10uL]

Since

1.1.0

See also


fun queueOf(progression: IntProgression): Queue<Int>

Return an integer Queue from int progression.

Example:

queueOf(1..10 step 2) // [1, 3, 5, 7, 9]

Since

1.1.0

See also


fun queueOf(progression: UIntProgression): Queue<UInt>

Return an un-sign integer Queue from un-sign int progression.

Example:

queueOf(1u..10u step 2) // [1u, 3u, 5u, 7u, 9u]

Since

1.1.0

See also


fun queueOf(progression: LongProgression): Queue<Long>

Return a long Queue from long progression.

Example:

queueOf(1..10L step 2) // [1L, 3L, 5L, 7L, 9L]

Since

1.1.0

See also


fun queueOf(progression: ULongProgression): Queue<ULong>

Return an un-sign long Queue from un-sign long progression.

Example:

queueOf(1uL..10uL step 2) // [1ul, 3uL, 5uL, 7uL, 9uL]

Since

1.1.0

See also


fun queueOf(range: CharRange): Queue<Char>

Return a char Queue from char range.

Example:

queueOf('a'..'f') // ['a', 'b', 'c', 'd', 'e', 'f']

Since

1.1.0

See also


fun queueOf(progression: CharProgression): Queue<Char>

Return a char Queue from char progression.

Example:

queueOf('a'..'f' step 2) // ['a', 'c', 'e']

Since

1.1.0

See also