[Haskell] re:please help!haskell

M.I.Azad1 at Bradford.ac.uk M.I.Azad1 at Bradford.ac.uk
Mon Dec 20 12:15:05 EST 2004

hi could somebody please explain how everything works in this function? and why
is 'list' there?
any help will be much apprecited
all_rotations :: [a] -> [[a]]
all_rotations xs =  take (length xs) (iterate list xs)
list xs = tail xs ++ [head xs]

This mail sent through IMP: http://webmail.brad.ac.uk
To report misuse from this email address forward the message
and full headers to misuse at bradford.ac.uk

More information about the Haskell mailing list