[Haskell-beginners] how to write this function