[Haskell-cafe] Re: Specify array or list size?

Daniel Carrera dcarrera at digitaldistribution.com
Sat May 7 12:11:03 EDT 2005

Max Vasin wrote:

> So, you need list of length 256 and then just use it as state of your PRNG.
> If you want to check list size you have to do it at runtime:
> f lst | length lst == 256 -> doWork
>       | otherwise         -> fail "length lst must be 256"

Okay, thanks.


More information about the Haskell-Cafe mailing list