DEV Community

loading...

Discussion on: Solving Algorithm Challenges in Haskell: Anagrams

Collapse
swizzard profile image
sam

You could use Control.Monad.replicateM_ instead of your hand-rolled repeatNTimes function.

Collapse
theodesp profile image
Theofanis Despoudis Author

Thank you for the tip. I will update the article.