Is there a (simple) manner to reverse a data array in postscript?
ie:
data [1 2 3 4 5] def
(simple reverse)
yields data being 5,4,3,2,1.
I don't know postscript very well, I have been searching the blue,red, and green books for 'reverse'. I might even be searching for the incorrect term.
The data is 400 numbers, I am currently creating postscript output via perl and am using perl to reverse the data and include it in the postscript file twice, once forwards and once backwards. I'd like to keep the postscript file as possible, and was hoping I could include the data once and have postscript reverse it.
ie:
data [1 2 3 4 5] def
(simple reverse)
yields data being 5,4,3,2,1.
I don't know postscript very well, I have been searching the blue,red, and green books for 'reverse'. I might even be searching for the incorrect term.
The data is 400 numbers, I am currently creating postscript output via perl and am using perl to reverse the data and include it in the postscript file twice, once forwards and once backwards. I'd like to keep the postscript file as possible, and was hoping I could include the data once and have postscript reverse it.