Files
LNXSDK/lib/aura/Sources/aura/utils/MapExtension.hx
2025-01-22 16:18:30 +01:00

14 lines
267 B
Haxe

package aura.utils;
/**
Merges the contents of `from` into `to` and returns the latter (`to` is
modified).
**/
@:generic
inline function mergeIntoThis<K, V>(to: Map<K, V>, from: Map<K, V>): Map<K, V> {
for (key => val in from) {
to[key] = val;
}
return to;
}