add code to transform an array via transducers