[Haskell-cafe] is there already a function that does this?