265bae5e839eefd260c1d4182c554489cf887a0678b439f1d9caaeaf27043731

Download raw

Created: 2023-12-19 03:40:10.302489 UTC

Size: 1437

Preview (limited to 512 bytes)

"-- | Benchmarking utilities. For example, functions for generating\n-- random strings.\nmodule Util.String where\n\nimport System.Random (mkStdGen, randomRs)\n\n-- | Generate a number of fixed length strings where the content of\n-- the strings are letters in ascending order.\nasc :: Int -- ^ Length of each string\n -> Int -- ^ Number of strings\n -> [String]\nasc strlen num = take num $ iterate (snd . inc) $ replicate strlen 'a'\n where inc [] = (True, [])\n inc (c:cs) = case inc cs of (True, cs') | c "


Casa is a service provided by the Haskell Foundation │ Originally developed by FP Complete