Without loops?
append!(a, reverse.(a))
There are options other than append! and push! but they are generally less efficient. There is a = [a; reverse.(a)] or a = vcat(a, reverse.(a)), …etc.
Without loops?
append!(a, reverse.(a))
There are options other than append! and push! but they are generally less efficient. There is a = [a; reverse.(a)] or a = vcat(a, reverse.(a)), …etc.