function f() {
for e in "$@"
do
echo $e
done
}
A=( x y z )
f a b "${A[@]}" 'c d' "e f"
will outputa b x y z c d e fwhen I expected it to output
a b x y z c d e fGoogle and stackoverflow.com both failed me, as did trying lots of variations.