API Browser

Method

AndModify

func AndModify(transform: V -> V) -> MapEntry<K, V>

Declaring type: MapEntry<K, V>
Namespace: System.Collections.Generic
Assembly: Raven.Core.dll
Source file: MapEntry.rvn

Transforms a present value once and writes back the result. A synchronous replacement callback; skipped when absent. This reusable locator, including when absent. The returned value wins over callback writes, and recreates a key removed by the callback on maps supporting removal. A callback exception prevents this helper's write; reference mutations and other callback effects remain. Chained calls independently resolve current state.

Parameters

Name Type Description
transform V -> V

Return value

MapEntry<K, V>