This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP MESSAGE----- | |
Version: GnuPG v1.4.12 (Darwin) | |
owFtkbFrFEEUxtdEYxIimP8gTH3I3MzOzuy1wTRBECxSHvtm3t4Nl+yus7sXczHY | |
yTUBewuvshDUWmwsFARJcU1InWAn2FiKZCbEQvA1w7z3ex/ve+/FncVoef3+8YNq | |
7dxNb3z79BOiRw9X3h4SKM0B6R2SEV49uS0G6Cpni4b0CM1jBblQXaqNzBUak2jG | |
ZBoLZWIjKdXIJFOKdMiwrEOHl4Gsxnu29Dn/6Vvjs//h26sCMtS54dz4EKmODQBk | |
jEslcwYJpQGs0RXZHnpaD52tR+SoQ3xubDWGia9rA9sMW/iX3wz8djvaxX2rJ6Gv | |
OahCYR+hfy3RB1sYb9p3jtHVtixIr+tJ3dig0eWplCL2njsEn1TWYd8GQshEUR8d | |
Ujkce0mQgqaYg6HMcKSAaYZCGpboLnCINWQ05QIZT2TGVZogR4HoN5qijKUMTmt8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module InverseFizzBuzz(fizz'buzz, inverse'fizz'buzz) where | |
-- Chris Kuklewicz | |
import Data.List(tails,inits,isPrefixOf) | |
import Data.Map(Map) | |
import qualified Data.Map as M | |
-- Operate on strings of 'f', 'b', and 'x' : | |
inverse'fizz'buzz [] = [] | |
inverse'fizz'buzz input = |