ds_map_clone
Clones a map simply to a new copy and returns the created map.
map = ds_map_create(); // resulting map clone:
map[? "Hello"] = "World"; // {
map[? "Goodbye"] = "Cruel World"; // Hello: "World"
// Goodbye: "Cruel World"
clone = ds_map_clone(map); // }
- ds_map_clone(map)
- Clones a map simply to a new copy and returns the created map.
COPY/// ds_map_clone(map)
//
// Clones a map simply to a new copy
// and returns the created map.
//
// map map to clone
//
/// GMLscripts.com/license
{
var map, clone;
map = argument0;
clone = ds_map_create();
ds_map_copy(clone, map);
return clone;
}
Contributors: RaniSputnik
GitHub: View · Commits · Blame · Raw