generatesEach

Generates each element for this collection rule target by invoking generator.


infix inline fun <Key, Value, MapType : Map<Key, Value>> RuleTarget<MapType>.generatesEach(noinline generator: Generator<Pair<Key, Value>>): MapEntrySpec<Key, Value, MapType>

Generates each entry for this map rule target by invoking generator.


Deprecated (with error)

Use the reified generatesEach(generator) overload.

Generates each entry for this map rule target by invoking generator.

This low-level overload is intended for callers that already carry KType values. The caller must keep the types and the generator types consistent.