[EMAIL PROTECTED] writes:
> 
> 
>  Hi,
> 
> Is there a way to maintain empty Arrays, for example returned by a
> function that sometimes has data to return and sometimes has not?
> 
 ...
>
> array (1,0) [] :: Array Int Int
> 
> > array 
> > Program execution error: index: Index out of range
> 
> 
> It's fairly clear what happens, but I cannot think of any other
> satisfying solution for my problem (maybe values are so clumsy...)
> 
> Is this standard? Are there systems with appropriate extensions? Did I
> miss the point, and it's actually easy to create empty Arrays?
> 

An empty array is one with a bound (l,h), where l > h. It looks like
you're encountering a system-specific problem here.

--Sigbjorn


Reply via email to