User created vector (or list) function?
I would like to create a function which takes a list as input and returns a list as output, something like
shift(x) = Flatten(Append(take(x,2),first(x)))
which is supposed to shift the first element to the last place. (This is just an example). The idea was that I'd then iterate this function using IterationList.
I've tried using both the Algebra and CAS views, and they both give me errors. I know I could probably do what I wanted with the spreadsheet, but I would much prefer to use a function, such as above.
Can this be done? Thanks!