← Docs
kotlin-stdlib / kotlin.collections / HashMap / size

size

Common
Native
1.0
val size : Int
(Common source) (Native source)
JS
1.1
open val size : Int
(source)

Returns the number of key/value pairs in the map.

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 .