← Docs
kotlin-stdlib / kotlin.collections / ArrayDeque / <init>

<init>

Common
JVM
JS
Native
1.0
ArrayDeque ( initialCapacity : Int )

Constructs an empty deque with specified initialCapacity , or throws IllegalArgumentException if initialCapacity is negative.

Common
JVM
JS
Native
1.0
ArrayDeque ( )

Constructs an empty deque.

Common
JVM
JS
Native
1.0
ArrayDeque ( elements : Collection < E > )

Constructs a deque that contains the same elements as the specified elements collection in the same order.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .