December 20th, 2006, 04:54 PM
Originally Posted by BaAa3
If I have an array and I want to shift the hole array to the right or left.
shift right = a[4,1,2,3] shift left = a[2,3,4,1] any idea !!
I'm not all that fluent with ML anymore however, the following psuedo code should help.
last : rest_without_last
What you want to do cons's the last element into the rest of the elements, but not the last.
programming language development: www.netytan.com – Hula