forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
13
lib/aura/Sources/aura/utils/MapExtension.hx
Normal file
13
lib/aura/Sources/aura/utils/MapExtension.hx
Normal file
@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user