[Haskell-beginners] operations on cyclic data structures