values

expect abstract val values: Collection<V>(source)

Returns a read-only Collection of all values in this map. Note that this collection may contain duplicate values.

Since Kotlin

1.0

Samples

import kotlin.test.*
import java.util.*

fun main() { 
   //sampleStart 
   val map = mapOf(1 to "one", 2 to "two", -2 to "two")
val values = map.values
println(values) // [one, two, two] 
   //sampleEnd
}
actual abstract val values: Collection<V>(source)

Returns a read-only Collection of all values in this map. Note that this collection may contain duplicate values.

Since Kotlin

1.1

Samples

import kotlin.test.*
import java.util.*

fun main() { 
   //sampleStart 
   val map = mapOf(1 to "one", 2 to "two", -2 to "two")
val values = map.values
println(values) // [one, two, two] 
   //sampleEnd
}
actual abstract val values: Collection<V>(source)

Returns a read-only Collection of all values in this map. Note that this collection may contain duplicate values.

Since Kotlin

1.0

Samples

import kotlin.test.*
import java.util.*

fun main() { 
   //sampleStart 
   val map = mapOf(1 to "one", 2 to "two", -2 to "two")
val values = map.values
println(values) // [one, two, two] 
   //sampleEnd
}
actual abstract val values: Collection<V>(source)

Returns a read-only Collection of all values in this map. Note that this collection may contain duplicate values.

Since Kotlin

1.3

Samples

import kotlin.test.*
import java.util.*

fun main() { 
   //sampleStart 
   val map = mapOf(1 to "one", 2 to "two", -2 to "two")
val values = map.values
println(values) // [one, two, two] 
   //sampleEnd
}
actual abstract val values: Collection<V>(source)

Returns a read-only Collection of all values in this map. Note that this collection may contain duplicate values.

Since Kotlin

1.8

Samples

import kotlin.test.*
import java.util.*

fun main() { 
   //sampleStart 
   val map = mapOf(1 to "one", 2 to "two", -2 to "two")
val values = map.values
println(values) // [one, two, two] 
   //sampleEnd
}
actual abstract val values: Collection<V>(source)

Returns a read-only Collection of all values in this map. Note that this collection may contain duplicate values.

Since Kotlin

1.8

Samples

import kotlin.test.*
import java.util.*

fun main() { 
   //sampleStart 
   val map = mapOf(1 to "one", 2 to "two", -2 to "two")
val values = map.values
println(values) // [one, two, two] 
   //sampleEnd
}