Algorithmically interesting Haskell functions