Write a function cycle of type ' a list -> 'a listwhose output list is the same as the input list, but with the firstelement of the list moved to the end.for example, cycle1 [1,2,3,4]should return [2,3,4,1].

Solved
Show answers

Ask an AI advisor a question