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?
The following expressions do not evaluate in hugs-1.4:
array (0,0) [] :: Array Int Int
> array (0, 0) [(0,
> Program execution error: {_undefined_array_element}
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?
Thanks,
Matthias
--
Max-Planck-Institut f�r Informatik | Deutsches Forschungszentrum f�r KI
[EMAIL PROTECTED] | [EMAIL PROTECTED]
http://www.mpi-sb.mpg.de/~fis |