Solve generalised hamming problem with cyclic data structures
Solve generalised hamming problem with cyclic data structures

ƛ: take 1000 $ fastgenhamming [2,3,5] --> (0.04 secs, 7,375,128 bytes)
ƛ: take 1000 $ genhamming [2,3,5] --> CTRL-C after 2+ minutes
ƛ: take 1000 $ hamming --> (0.07 secs, 7,379,872 bytes)

When I run it in ghci

futtetennista/IntroductionToFunctionalProgramming