Add a function to prefix arrays