[Haskell-cafe] Silly question: accessing a slot in a data type

Miguel Mitrofanov miguelimo38 at yandex.ru
Wed Jan 9 13:05:32 EST 2008


> Also, how do I represent an AddressBook with an empty list and one  
> with data on its list for my pattern matching?

phoneLookup (AddressBook []) = Nothing


More information about the Haskell-Cafe mailing list