More suitable data structure needed

Ashley Yakeley ashley@semantic.org
Wed, 21 Aug 2002 00:16:57 -0700


At 2002-08-21 01:14, Dr Mark H Phillips wrote:

>But what is the best way to represent this in Haskell?  (Clearly
>I can't do exactly this, because Haskell requires all list elements
>to be of the same type.)

Create a new type that can allow either a pair or a list of pairs, and 
use a list of that.

-- 
Ashley Yakeley, Seattle WA