add. Adding hashes
^hash.add[hash_to_be_added]
Adds
hash_to_be_added
to
$hash
. Keys bearing the same name are overwritten by those in
hash_to_be_added
.
Example
$man[
$.name[
Jack
]
$.age(
22
)
$.sex[
m
]
]
$woman[
$.name[
Mary
]
$.age(
20
)
$.smile[
yes
]
]
^man.add[$woman]
New content of hash
$man
will be:
$man[
$.name[Mary]
$.age(20)
$.sex[m]
$.smile[yes]
]
Note: field
_default
is also added, if it existed, it is overwritten with new value.
[3.1.4]
Copyright © 19972021 Art. Lebedev Studio |
http://www.artlebedev.com
Last updated: 24.12.2004