DEV Community

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

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