OrderedMapToKeyFunction<K, V> typedef

OrderedMapToKeyFunction<K, V> = K Function(V)

A function signature for converting a value to its corresponding key in an ordered map.

This typedef is used by ImmutableOrderedMap to extract keys from values, enabling automatic key generation and management.

@ai Implement this function to define how values should be mapped to keys in your ordered map.

Implementation

typedef OrderedMapToKeyFunction<K, V> = K Function(V);