[Haskell-cafe] Specify array or list size?
feucht at uni-koblenz.de
feucht at uni-koblenz.de
Sat May 7 15:33:07 EDT 2005
On 7 May, Daniel Carrera wrote:
> Hello,
>
> Right now I'm using type declarations like:
>
> f :: Int -> [Int]
>
> So f returns a list of Ints.
>
> Is there a way to tell Haskell that a list or array must have exactly
> (say) 256 elements? I'd love to have Haskell make sure that the array I
> build is the correct size.
>
> Cheers,
> Daniel.
Hi,
you may use a tuple?
greetings,
Philip
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
More information about the Haskell-Cafe
mailing list