arrayDequeOf

inline fun <T> arrayDequeOf(): ArrayDeque<T>

Return an empty new ArrayDeque.

Since

1.1.0


inline fun <T> arrayDequeOf(vararg elements: T): ArrayDeque<T>

Returns a ArrayDeque of given elements.

Since

1.1.0


fun arrayDequeOf(range: IntRange): ArrayDeque<Int>

Return an integer ArrayDeque from int range.

Example:

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

Since

1.1.0


fun arrayDequeOf(range: UIntRange): ArrayDeque<UInt>

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

Example:

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

Since

1.1.0


fun arrayDequeOf(range: LongRange): ArrayDeque<Long>

Return a long ArrayDeque from long range.

Example:

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

Since

1.1.0


fun arrayDequeOf(range: ULongRange): ArrayDeque<ULong>

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

Example:

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

Since

1.1.0


fun arrayDequeOf(progression: IntProgression): ArrayDeque<Int>

Return an integer ArrayDeque from int progression.

Example:

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

Since

1.1.0


fun arrayDequeOf(progression: UIntProgression): ArrayDeque<UInt>

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

Example:

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

Since

1.1.0


fun arrayDequeOf(progression: LongProgression): ArrayDeque<Long>

Return a long ArrayDeque from long progression.

Example:

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

Since

1.1.0


fun arrayDequeOf(progression: ULongProgression): ArrayDeque<ULong>

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

Example:

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

Since

1.1.0


fun arrayDequeOf(range: CharRange): ArrayDeque<Char>

Return a char ArrayDeque from char range.

Example:

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

Since

1.1.0


fun arrayDequeOf(progression: CharProgression): ArrayDeque<Char>

Return a char ArrayDeque from char progression.

Example:

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

Since

1.1.0