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

get

Common
Native
1.0
operator fun get ( key : K ) : V ?
(Common source) (Native source)
JS
1.1
open operator fun get ( key : K ) : V ?
(source)

Returns the value corresponding to the given key , or null if such a key is not present 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 .