Deepcopy: Difference between revisions

no edit summary
(→‎{{header|Phix}}: explained "with js" and that deep_copy() is now a builtin)
No edit summary
Line 105:
: DeepCopy(Val,Objs) ; Otherwise, clone this sub-array
Return Obj
}</lang>
 
=={{header|AWK}}==
AWK's only data structure is the associative array, and it doesn't allow for nested associative arrays (POSIX). Thus:
<lang awk>BEGIN {
for (elem in original)
copied[elem] = original[elem]
}</lang>
 
Anonymous user