Smithy Kotlin
Toggle table of contents
1.5.8
common
Platform filter
common
Switch theme
Skip to content
Smithy Kotlin
runtime-core
/
aws.smithy.kotlin.runtime.collections
/
MutableAttributes
/
computeIfAbsent
compute
If
Absent
common
abstract
fun
<
T
:
Any
>
computeIfAbsent
(
key
:
AttributeKey
<
T
>
,
block
:
(
)
->
T
)
:
T
Gets a value of the attribute for the specified
key
, or calls supplied
block
to compute its value