$colors = {
'primary' : #124af5
'dark' : #222222
'white' : #ffffff
}
$colors-2 = $colors
remove($colors, 2, 'primary')
$colors-2 = $colors
both variables point to the same hash (the array). Instead of this lines you have to write $colors-2 = merge({}, $colors)
to copy the contents of the $colors
in $colors-2
, and then $colors-2
will have to point to the copy, not on the same hash. Something like that.