lazyHashCode

fun lazyHashCode(initializer: () -> Int): Lazy<Int>

Creates a lazy hash code using an initializer function.

Return

A Lazy instance that computes the hash code when accessed.

Parameters

initializer

A function that returns the hash code value.

See also

for creating a lazy hash code using a HashCodeBuilder.