Edit primitive arrays