extract array to a constant

extract array to a constant