8.4 Constructing arrays

Function: mbfl_array_copy DST SRC

Copy element–by–element the source array SRC into the destination array DST; both DST and SRC should be references to variables.

mbfl_declare_assoc_array_varref(SRC, ([a]=1 [b]=2 [c]=3))
mbfl_declare_assoc_array_varref(DST)

mbfl_array_copy mbfl_datavar(DST) mbfl_datavar(SRC)

mbfl_slot_ref(DST, a)   ⇒ 1
mbfl_slot_ref(DST, b)   ⇒ 2
mbfl_slot_ref(DST, c)   ⇒ 3

This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.