package helpers; import haxe.ds.StringMap; class StringMapHelper { public static function copy (source:StringMap ):StringMap { var target = new StringMap (); for (key in source.keys ()) { target.set (key, source.get (key)); } return target; } public static function copyKeys (source:StringMap , target:StringMap ):Void { for (key in source.keys ()) { target.set (key, source.get (key)); } } public static function copyUniqueKeys (source:StringMap , target:StringMap ):Void { for (key in source.keys ()) { if (!target.exists (key)) { target.set (key, source.get (key)); } } } }