
12 Oct
2004
12 Oct
'04
8:19 a.m.
Keean writes (in the Haskell cafe):
[..] data AList a = One !a (AList a) | Many !Int !(UArray Int a) (AList a) | Nil [..] head (Many i a _) = a!i [..] a ++: l = Many 0 a l
You probably want to test in the definition of (++:) that the array a is not of length 0. Cheers, Ronny Wichers Schreur